All tools Developer

Chmod Calculator

Pick read, write and execute permissions and get the chmod value in octal and symbolic form.

Read Write Execute Owner Group Other
755

Symbolic

rwxr-xr-x

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Tick read, write and execute for owner, group and others.
  2. Optionally set the special bits: setuid, setgid and sticky.
  3. Read the value in octal and symbolic form.
  4. Copy the value for your chmod command.

Details

Unix file permissions come in three sets — owner, group and others — and each set is three switches: read (4), write (2) and execute (1). Adding the switches in a set gives one octal digit, so 755 reads as rwxr-xr-x: the owner can do everything, everyone else can read and execute. The special bits add a leading fourth digit — setuid (4), setgid (2), sticky (1) — as in 4755. This calculator turns the checkboxes into both the octal number and the symbolic string.

  • 644 (rw-r--r--) suits ordinary files and 755 (rwxr-xr-x) suits directories and programs; directories need execute permission to be entered.
  • Avoid 777: it makes a file writable and executable by every account on the machine.

Common questions

What do the numbers mean?

Each digit covers owner, group, and others: 4 = read, 2 = write, 1 = execute. So 755 means rwxr-xr-x.

What are the special bits?

setuid (4), setgid (2), and sticky (1) add a leading fourth digit — e.g. 4755.