elefcode

Unix Permissions (chmod) Calculator

Click the boxes, type an octal mode, or paste ls -l output — and see what the permissions actually allow.

WhoRead (4)Write (2)Execute (1)Special=
Owner (u)7
Group (g)5
Others (o)5
As ls -l shows it
-rwxr-xr-x

Symbolic arguments are applied to the current mode, just as chmod does.

What 755 means

The owner can read it, change it and run it.

The group can read it and run it.

Everyone else can read it and run it.

Octal
chmod 755 file
Symbolic
chmod u=rwx,g=rx,o=rx file

Common modes

umask

The umask removes permissions from new files (which start at 666) and folders (777).

New files: 644 (rw-r--r--) · new folders: 755 (rwxr-xr-x)

Advertisement

Guide

About the Chmod Calculator

On Unix and Linux systems, every file and directory has permissions that control who can read, write, and executeit. Those permissions are split across three groups — the file's owner, its group, and others (everyone else). The chmod command changes them, and this calculator translates between the clickable rwx view, the octal number like 755, and symbolic notation like rwxr-xr-x.

Toggle the boxes and read off the number, or type a number and see which permissions it grants — plus the exact command to run.

How the numbers work

Each permission is a value: read = 4, write = 2, execute = 1. Add them up per group to get one digit (0–7). So 7 is read+write+execute (4+2+1), 5 is read+execute (4+1), and 6 is read+write (4+2). Three digits — owner, group, others — make a full mode like 644 or 755.

Common permission sets

  • 644 — files: owner can edit, everyone can read. The typical default for documents and web files.
  • 755 — directories and scripts: owner can edit, everyone can read and enter/run.
  • 600 — private files like SSH keys: only the owner can read or write.
  • 700 — private directories: only the owner has any access.

How to use it

  1. 1Click the read, write, and execute boxes for owner, group, and others.
  2. 2Read the resulting octal (e.g. 755) and symbolic (rwxr-xr-x) values.
  3. 3Or type an octal number to see which permissions it represents.
  4. 4Copy the generated chmod command and run it in your terminal.

Frequently asked questions

What does chmod 755 mean?

The owner has read, write, and execute (7); the group and others have read and execute (5 and 5). It is the standard mode for directories and executable scripts.

What is the difference between 644 and 755?

644 grants no execute permission — good for regular files. 755 adds execute for everyone, which directories need to be entered and scripts need to run.

How do read, write, and execute map to numbers?

Read is 4, write is 2, and execute is 1. You add them per group, so read+write+execute is 7 and read+execute is 5.

What are setuid, setgid and the sticky bit?

A fourth, leading octal digit. Setuid (4) runs a program as its owner — passwd uses it to edit system files. Setgid (2) runs as the group, and on a folder makes new files inherit its group. The sticky bit (1) on a folder lets people delete only their own files, as in /tmp (1777).

How do I set folders to 755 and files to 644 in one go?

chmod -R applies one mode to everything, which makes every file executable. Use find instead: find folder -type d -exec chmod 755 {} + for folders and find folder -type f -exec chmod 644 {} + for files. Choose Folder and the tool shows both commands.

What does execute mean on a directory?

On a directory, the execute bit lets you enter it and access files inside by name. Without it, you cannot traverse into the directory even if you can read its listing.

What is the difference between symbolic and octal chmod?

They express the same permissions two ways. Octal (755) sets all bits at once; symbolic (u+x, go-w) adjusts specific bits relative to the current state. This tool shows both.

Learn more

Related tools