Question
Setting server-wide Umask for directories and files
For the domains/sites running on my Ubuntu 14.04 server, I had added the Linux user accounts to the www-data group. The document root (public_html) of the individual Linux user accounts that correspond to each web site are chowned to user:user.
Now, when directories or files are created through SFTP or shell, they have 775 and 664 values. Is there a way to set the umask server-wide so that all directories have 755 as default and all files have 644 as the default?
Thanks in advance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×