This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Linux / UNIX
How to set permissions for specified users
Joined: Nov 25, 2007
Mar 17, 2008 22:53:00
I want to set some specific permissions for specified users only.
Like read permission for specified files for selected users only.
How I will do that?
[ March 17, 2008: Message edited by: minal silimkar ]
Joined: Jun 25, 2001
Mar 18, 2008 08:05:00
You can set up a special group, add the users to that group, then set the group ownership of the files and directories.
For even finer control, you can use Selinux, but that's too complicated to describe here.
An IDE is no substitute for an Intelligent Developer.
Joined: Aug 22, 2006
Mar 22, 2008 00:06:00
Which OS, Minal?
In AIX, one has 'setfacl' that can be used to do exactly what you want. Solaris had something similar, but not so easy to use as AIX.
Tim is right, of course, but to create a group with specific users, one needs administrative privileges.
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to set permissions for specified users
"root" vs. "user defined user"
Write to server outside web application?
is this not a security issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015