enforcing unix permissions on directories
Hey guys, I'm a bit stuck on this one..
Is there a way to force a directory's group permissions to its childs?
i.e.: directory1 is owned by user1, and has group group1, with 770 permissions. Is there a way to ensure that user2 (which also belongs to group1) cannot create files under that directory set to any group other than group1?
Is this possible with the unix permission model?
Or maybe with ACLs?
chmod +s dirname
sets the sgid bit on the dir; all files created in there will be (group) owned by the dir's group.
See also chgrp.
That's exactly what I was looking for. Thanks!
|All times are GMT -5. The time now is 04:35 AM.|