I have a directory of subdirectory and files, with the files' permissions set at 0664.The directory and subdirectories are set at 2775, so all new files made have the same group set as the directory.New files made in the directories have permissions set to 0644.Is there anything that can be done to make new files have the permissions set to 0664 instead, in a similar fashion to using setgid for the group owner of the files?
How to make new files have 0664 permissions rather than 0644?
permissions;setuid
umask 002Files (and directories) after this will be created with 0664 permissions.