BimbifChmod Calculator

Chmod Calculator

Work out Unix and Linux file permissions without memorising octal. Tick read, write and execute for the owner, group and others — or type a number such as 644 or a string like rwxr-x--- — and get the matching numeric mode, symbolic mode and ready-to-copy chmod command. Special bits and umask are covered too.

Chmod calculator

Read (4)Write (2)Execute (1)
Owner (u)
Group (g)
Others (o)
Umask calculator

Linux Permissions Cheat Sheet Pack

Printable chmod and permissions cheat sheet, special bits reference, common modes by use case, a permissions audit worksheet and a find/chmod command reference.

Formats: PDF, XLSX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out before publishing.

$5.00 USD, one-time 4 files · about $1.25 each

7-day money-back guarantee. Full refund within 7 days of purchase, even after you download.

Free sample: Chmod Cheat Sheet (PDF, 53 KB)

Full refund within 7 days — see the refund policy and license.

Free printables

Single sheets you can print right now, no sign-up. The full pack adds every sheet in one download plus the editable files.

Browse the free printables →

How Unix permissions work

Every file and directory on Linux, macOS and other Unix-like systems has an owner, a group and three sets of permissions: for the owner (u), for members of the group (g), and for everyone else (o). Each set can allow read (r), write (w) and execute (x). For files, read means view the contents, write means change them, and execute means run the file as a program. For directories, read means list the names inside, write means create, delete and rename entries, and execute means enter the directory and access items in it.

Numeric (octal) permissions

NumberPermissionsSymbolic
0none---
1execute--x
2write-w-
3write + execute-wx
4readr--
5read + executer-x
6read + writerw-
7read + write + executerwx

Each permission has a value — read 4, write 2, execute 1 — and the digit for each class is their sum. So 755 means owner 7 (rwx), group 5 (r-x) and others 5 (r-x). A fourth leading digit sets the special bits.

Common chmod values

ModeSymbolicTypical use
644rw-r--r--Regular files: web pages, documents, config readable by all
600rw-------Private files: SSH private keys, credentials
755rwxr-xr-xScripts and programs; directories that others may enter
700rwx------Private directories and scripts
750rwxr-x---Shared with a group only
775rwxrwxr-xGroup-writable project directories
664rw-rw-r--Group-editable files
1777rwxrwxrwtShared temporary directories such as /tmp (sticky bit)
777rwxrwxrwxEveryone can do everything — avoid

Symbolic chmod commands

CommandEffect
chmod u+x fileAdd execute for the owner
chmod go-w fileRemove write for group and others
chmod a+r fileAdd read for all
chmod u=rw,go=r fileSet exact permissions (same as 644)
chmod -R g+w dirAdd group write recursively
chmod +x script.shAdd execute for all classes, respecting umask

Symbolic mode is handy for changing one permission without touching the rest; numeric mode sets all of them at once.

Special permission bits

A capital S or T means the special bit is set but the underlying execute permission is not — usually a mistake.

Umask: default permissions

The umask removes permissions from the defaults used when files and directories are created. New files start from 666 and directories from 777, and the umask bits are cleared. With the common umask 022, new files get 644 and directories 755; with 077, files get 600 and directories 700 — private to the owner. Check your umask with the umask command and set it in your shell profile or service configuration.

Worked example: a web server

For a website served by a web server running as a different user, a common layout is directories at 755 and files at 644, owned by the deploying user. Scripts that must run are 755. Configuration files containing database passwords are 640 with the web server’s group, or 600 if only the owner needs them. Running find /var/www/site -type d -exec chmod 755 {} + and find /var/www/site -type f -exec chmod 644 {} + applies this safely, rather than a blanket chmod -R 777, which would let any process on the server modify the site.

Security tips

Permissions on directories vs files

Directory permissions often surprise people. To open a file, you need execute permission on every directory in its path, even if the file itself is readable. Read permission on a directory without execute lets you list names but not open anything inside; execute without read lets you open files whose names you already know but not list the directory. Deleting a file depends on write and execute permission on the directory that contains it — not on the file’s own permissions — which is why the sticky bit exists for shared directories.

Troubleshooting “Permission denied”

  1. Check who you are running as: whoami and id show your user and groups.
  2. Check the file and every parent directory with ls -ld.
  3. Make sure the process has execute permission on each directory in the path.
  4. For scripts, confirm the file has execute permission and a valid shebang line such as #!/bin/bash.
  5. Remember that new group memberships take effect after you log out and back in.
  6. On some systems, extra layers such as ACLs (getfacl), SELinux or AppArmor can deny access even when mode bits allow it.

Privacy

The calculator runs in your browser; nothing is sent anywhere.

Frequently asked questions

What does chmod 755 mean?

Owner can read, write and execute; group and others can read and execute (rwxr-xr-x).

What does chmod 644 mean?

Owner can read and write; group and others can only read (rw-r--r--).

What is the difference between 755 and 775?

775 also lets the group write.

Why is chmod 777 dangerous?

Anyone on the system can modify or replace the file.

What does the s in rwsr-xr-x mean?

The setuid bit is set: the program runs with the owner’s privileges.

What is umask 022?

It removes write for group and others, so new files are 644 and new directories 755.