What is a umask?
A umask is a setting on Unix systems that removes permissions from every new file and folder. Programs ask for a default: usually 666 for files (read and write, but not execute) and 777 for folders. The umask then takes away the permission bits it contains.
With the common umask 022, group and others lose write permission, so new files are 644 (rw-r--r--) and new folders are 755 (rwxr-xr-x). With umask 077, only the owner keeps access, giving 600 files and 700 folders. This tool shows the result for any umask of three or four octal digits.
How to use the Umask Calculator
- Type a umask of three or four octal digits, such as 022.
- Read the permissions for new files and folders.
- Compare with the table of defaults before choosing.