Restrict user to change group permission

Ed Wilts ewilts at ewilts.org
Mon Nov 22 20:29:01 UTC 2004


On Mon, Nov 22, 2004 at 03:09:05PM -0500, Reuben D. Budiardja wrote:
> 
> Is there a way to make any file and sub-directory under a directory is owned 
> by a certain group, have permission 'rw' for that group by default, 
> regardless who created the file and how the file was created, and restricted 
> for any user to change the group permission (ie. I want the group permission 
> to always be 'rw' so that even the user who created the file under that 
> directory cannot change the group permission )

You can start with a chmod g+s /directory

However, the owner a file can pretty much do what he wants, including
changing the permissions.  SELinux might change that - I haven't
researched this at all.


-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program




More information about the redhat-list mailing list