The umask can be worked out as follows - for example a umask of 002:
Directories: 777 - 002 = 775
Files: 666 - 002 = 664
i.e. the owner and group are able to read, write and execute directories and everyone else can only read and execute them. While the owner and group can write, write files and everyone else can only read them.
In order to apply these to httpd we can simply add the following line under the service stanza in /lib/systemd/system/httpd.service:
vim /lib/systemd/system/httpd.service
[Service]
...
UMask = 0002
and finally ensure httpd is restarted with:
sudo systemctl daemon-reload
sudo systemctl httpd restart
No comments:
Post a Comment