Tools › Server & DevOps › Umask Calculator
🎭

Umask Calculator

Enter a umask value to see the permissions that new files and directories will get.

Presets:

How it works

A umask removes permission bits from the defaults a program asks for. Programs normally request 666 (rw-rw-rw-) for files and 777 (rwxrwxrwx) for directories, and the umask is subtracted bit by bit. With the common umask 022, new files get 644 and new directories 755.

Use 002 for shared group-writable directories, 027 when others should have no access, and 077 when only the owner should ever access new files.

Frequently asked questions

How do I check my current umask?

Run umask in a shell. Run umask -S for the symbolic form.

Why do new files never get the execute bit?

Programs ask for 666 for ordinary files, so execute is never set unless the program requests it (as compilers do).

How do I set the umask permanently?

Add umask 027 to your shell profile, or set UMASK in /etc/login.defs for system-wide defaults.

More tools

⏱️ Cron Expression Explainer🔐 Chmod Calculator📶 File Transfer Time Calculator💾 Data Size Converter📈 Uptime / SLA Downtime Calculator🗄️ RAID Capacity Calculator🕒 Unix Timestamp Converter🔑 Password Generator{ } JSON Formatter & Validator🔤 Base64 Encode / Decode🆔 UUID Generator🌐 IPv4 Subnet (CIDR) CalculatorAll Server & DevOps tools →
Copied to clipboard