Skip to content

Free tool

chmod Permission Calculator

Tick the permissions or type an octal mode like 755 and get the matching rwx string and a ready-to-paste chmod command.

Runs entirely in your browser. Nothing you enter is sent to a server.

Permissions
ClassRead (4)Write (2)Execute (1)
Owner (u)
Group (g)
Others (o)
Special bits
Command
Symbolic form of the same command

How it works

Unix permissions are nine bits in three groups: owner (user), group and others, each with read (r = 4), write (w = 2) and execute (x = 1). Adding the values in each group gives one octal digit, so rwxr-xr-x is 7, 5, 5, or 755.

An optional leading digit holds the special bits: setuid (4), setgid (2) and sticky (1). The calculator keeps the checkboxes, the octal field and the symbolic field in sync, so you can edit whichever is easiest and read off the others. It also writes the equivalent symbolic form, such as u=rwx,g=rx,o=rx.

Common uses

  • Choosing the right mode for web roots, scripts, SSH keys and config files.
  • Decoding the permission string from an ls -l listing.
  • Writing the chmod command for a deployment script or Dockerfile.
  • Understanding setuid, setgid and sticky bit settings on shared directories.

Frequently asked questions

What does chmod 755 mean?

Each digit is the sum of read (4), write (2) and execute (1) for one class. 755 gives the owner 7 (rwx) and the group and others 5 (r-x): they can read and execute but not write. It is a common mode for directories and executable scripts.

What does chmod 644 mean?

644 gives the owner read and write (6 = 4 + 2) and the group and others read only (4). It is a common mode for ordinary files such as web pages and configuration.

Why is chmod 777 discouraged?

777 lets every user on the system read, write and execute the file. On a shared or internet-facing server that is rarely necessary and a security risk. Grant the narrowest permission that works, usually by fixing the owner or group instead.

What are setuid, setgid and the sticky bit?

They are the optional fourth leading digit: 4 is setuid (run as the file’s owner), 2 is setgid (run as the file’s group, or inherit the directory’s group) and 1 is the sticky bit (on a directory, only a file’s owner can delete it, as in /tmp). In the rwx string they appear as s or S and t or T in the execute position.

What do the capital S and T mean?

A lowercase s or t means the special bit is set and execute is also set for that class. A capital S or T means the special bit is set but execute is not, which is usually a sign of a misconfiguration.

All free tools

Need something built?

Need help with your cloud or software?

These tools are free to use. If you need cloud and DevOps, web or mobile development, CRM integrations or managed IT support, tell us what you are working on.