How to make a directory with permanent permissions different from default
- by Carlos Fernández San Millán
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:
sudo chfn -o "umask=002" daemon_username
bash script running at boot with umask 022 on the desired directory