I have a fairly restrictive umask setting (0077). This is fine, except I have one directory in which I'd like a more permissive setting (0002) to all files created anywhere under that directory. Is there a way to set a umask on a specific directory, so all files created beneath it inherit the same permissions?
|
feedback
|
|
Use ACL's setfacl -d -m mask:002 /your/dir/here/ http://man-wiki.net/index.php/1:setfacl If wanting to have a default for a login, just add a "umask 002" to your .bashrc (or whatever shell you use). All new dirs will use this if logged in under that env. | |||||||||||||||
feedback
|