System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

file permissions on redhat linux

SOLVED
Go to solution
sandyt
Frequent Advisor

file permissions on redhat linux

I am having trouble doing the following on a redhat linux server.

1. we have a library aaa.
2. I want users x,y, and z to be able to write
to that library.
3. I want user x to only be able to delete his own files, while other users can have full rights on all files in the library regardless of owner or group.
4. User x is only a member of his group. Users y and z are members of another group.
5. I tried putting a sticky bit on the others permission on the library, but that causes problems with the other users.
5 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: file permissions on redhat linux

Shalom,

Item 5.

What kind of problems. Post command and error response.

Suggestion:

Give the group y and z are members of full rights to the directory.

Give group of user x read execute only.

Perhaps create a common group for management of this project/folder/library

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: file permissions on redhat linux

In this case you need a separate folder for user x and user y/z, or give user y/z the rm command with sudo power for that folder. You'll need the SGID bit on the directory.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
dirk dierickx
Honored Contributor

Re: file permissions on redhat linux

the sticky bit should go on the directory, not the file.
J. Maestre
Honored Contributor

Re: file permissions on redhat linux

You could also dig into SELinux, as fine grained ACLs would give you flexibility to do exactly what you want.
sandyt
Frequent Advisor

Re: file permissions on redhat linux

Thanks for the input. I am using seperate folders as Ivan suggested in the short term, but plan to explore sep's idea in the next few days.