Команда umask
Get or set the file mode creation mask.
umask [-S] [000] [mask]
| -S | Produce symbolic output. The default output style is unspecified, but will be recognized on a subsequent invocation of umask on the same system as a mask operand to restore the previous file mode creation mask. |
| 000 | Any three octal digits used for permissions. |
Примеры
umask
Running umask alone will display the current umask environment settings.
umask 000
The above example allows any permissions. This does not actually set permissions just allows permissions to be set.