Linux Permission Utility
Umask Calculator
Generate and copy Linux default file and directory permissions from umask values like 0022/022, 0002/002, 0027/027, and 0077/077. For example, umask 022 gives files 644 and directories 755.
Calculate default permissions
Ready to calculate a Linux umask.
Generated Linux permissions
New files
644
-rw-r--r--
New directories
755
drwxr-xr-x
File base: 666
Directory base: 777
Umask: 022
Reverse umask calculator
Start from the file and directory permissions you want, then calculate the umask that creates them. This is useful when you know you need files like 640 and directories like 750.
Ready to recommend a Linux umask.
Recommended umask
Use umask
027
umask 027
Result check
640 / 750
-rw-r----- / drwxr-x---
Detailed guide
Need the assumptions, examples, and troubleshooting?
The calculator stays focused here. The supporting reference has moved to its own page.
Read the Umask Calculator guide