Use Chmod Calculator

Enter your data below to use the Chmod Calculator

📌 Try these examples:
RESULT

Last updated

Understanding Unix File Permissions

Every file and directory on a Unix/Linux system has a set of permission bits that control who can read, write, or execute it. Permissions are divided into three groups: owner (the user who created the file), group (a set of users), and others (everyone else). Each group gets three bits: read (r), write (w), execute (x).

The chmod command changes these permissions. You can express permissions either symbolically (chmod u+x file) or as a 3-digit octal number (chmod 755 file). The octal form is more compact and is what this calculator works with.

The Octal Permission System

Each permission group (owner, group, others) is represented by a single octal digit (0–7). The digit is the sum of the active permission bits:

PermissionBit valueSymbol
Read4r
Write2w
Execute1x
None0-

So 7 = 4+2+1 = read+write+execute, 6 = 4+2 = read+write, 5 = 4+1 = read+execute, 4 = read only.

Most Common chmod Values

OctalSymbolicTypical use
755rwxr-xr-xExecutable scripts, web directories
644rw-r--r--Regular files, HTML, CSS, config files
600rw-------SSH private keys, sensitive config
700rwx------Private scripts, user home directories
777rwxrwxrwxFully open (avoid in production)
400r--------Read-only files (e.g., AWS .pem keys)
664rw-rw-r--Shared group-writable files

Special Permission Bits

Beyond the standard 9 bits, Unix has three special bits represented by a 4th octal digit:

Shell
# Set setuid on a binary
chmod 4755 /usr/local/bin/mytool

# Set sticky bit on a shared directory
chmod 1777 /tmp/shared

# Recursive permission change
chmod -R 755 /var/www/html

# Symbolic form: add execute for owner only
chmod u+x deploy.sh

# Remove write from group and others
chmod go-w config.yml
ℹ️

SSH will refuse to use a private key file if its permissions are too open. AWS EC2 requires chmod 400 your-key.pem before connecting. The error "WARNING: UNPROTECTED PRIVATE KEY FILE!" means the key is readable by others.

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.