I have the folder called backups. The root is putting backups in that folder.
I want that all the files which are created in that folder should have group write permission.
I know i can use umask but i want to know that will umask work for all the files any where or it will work on particular folder.
e,g i want umask for only /backups folder not any where else
One possibility is to use access control lists. The filesystem containing
/backupsneeds to be mounted with theacloption. Then give access to the group that should have it:All subsequently created files and directories under
/backupswill be writable bybackup-group, unless the backup program explicitly uses restrictive permissions (if it’s storing archive files of some kind, you’ll be ok, but if it’s e.g.rsyncpreserving permissions, that won’t do).Another possibiliyt is to use bindfs to provide a view of
/backups(mounted at a different location) with different permissions.