How to make a directory with permanent permissions different from default

Posted by Carlos Fernández San Millán on Ask Ubuntu See other posts from Ask Ubuntu or by Carlos Fernández San Millán
Published on 2011-11-25T15:43:06Z Indexed on 2011/11/25 18:04 UTC
Read the original article Hit count: 342

Filed under:
|
|

I have system-wide default permissions set with umask 027. I am in the need to make a directory whose sub-directories would need 775 permission and whose files would need 664 permissions and make these permissions permanent after booting the system.

I am looking for the best options out there without compromising security. Any ideas?

Thank you.

Some research done:

  1. sudo chfn -o "umask=002" daemon_username
  2. bash script running at boot with umask 022 on the desired directory

© Ask Ubuntu or respective owner

Related posts about boot

Related posts about permissions