Default Permissions: umask
¶
Default Permissions - umask
¶
The U-Mask …
Bit field
Subtracted from default permissions at file/directory creation
Process attribute ⟶ inherited
$ umask
0022
$ touch /tmp/file
$ ls -l /tmp/file
umask
: How Does it Work?¶
umask
subtracted from default permissionsumask
is an (inherited) process attributeDefault permissions at file creation:
rw-rw-rw-
Default permissions |
|
|
|
|
|
|
|
Outcome |
|
|
|