Umask Calculator
Enter a umask value to see the resulting default file and directory permissions.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
On Linux and Unix systems, new files and directories start from maximum default permissions — 666 (rw-rw-rw-) for files and 777 (rwxrwxrwx) for directories — and the umask value subtracts specific permission bits from that maximum using a bitwise AND with the complement of the mask. A umask of 022, for example, strips group and other write permission, leaving new files at 644 and new directories at 755.
System administrators and developers set the umask in shell profiles or service configs to control the default access level of everything a process creates, which matters for security on shared servers and multi-user systems. This calculator takes a umask value and shows the resulting default permissions for both new files and new directories.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)