UMASK Linux Default Permission
by mmahmoodict on 22 Feb 2013 19:21
The user file-creation mode mask (umask) is used to determine the file permission for newly created files. Umask is a number subtracted from the standard permissions when creating a file. By default, most Linux distros set it to 0022 (022) or 0002 (002).
Default permission: 666
Subtract umask value: 022 (-)
Directory permission: 644
To modify umask:
umask 066 # set umask
Above command set umask value, but it persist until logout and then it return to its default value. If value need to be permanent put "umask 066" in /etc/profile or ~/.bashrc file.