Is there a way to disable file permissions for a whole directory tree so that permissions of new files and directories are automatically disabled?
I have a multi user environment and want to have a directory tree where some of the users need full access, others only read access. Right now it is an easy scenario, but will get more complex.
I use RSBAC to model all rights of the users, but if the users in those shared folders create files or folder the default umask is 0022. So alice cannot edit bobs file in this shared folder. My current workaround is to write
umask 0000 into
$HOME/.profile of every user so that the files and folder can be edited by anyone.
This obviously leads to problems when the users want to write in other non-shared locations.
If this is not possible, is there an automatic way to set permissions to 777 for every new file and directory?
This should be a shared setting where the file owner cannot change the permissions/acls.