Linux System Administration
User Management
UMASK
When a file is created, what are it's default permissions?
The default is 777 for directories and 664 for files.
This can be changed by setting the umask.
The umask decreases the permission number by the value stored in umask.
For example, if you wanted
-rwxr-xr-x
to be the default you would set the umask to be 022.
To get the new default, you subtract the umask from 777.
The umask is set in
/etc/bashr
c for the system
The umask can be set locally in ~/.bash_profile
Prev
Page 20 Next