umask calculator
The umask removes permission bits from new files (666) and directories (777).
New files and directories get
| Octal | Symbolic | Calculation | |
|---|---|---|---|
| Files | | | |
| Directories | | | |
Set it
Put it in ~/.bashrc or ~/.profile for one user, or /etc/login.defs (UMASK) system-wide. For systemd services use UMask= in the unit.