Chmod Calculator (Linux File Permissions)

Work out what a chmod number means, or which number you need. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
Octal (755, 4755) or symbolic (rwxr-xr-x). The leading file-type character of ls -l output is accepted.

How to use it

  1. Type an octal mode such as 644, or the nine-character form such as rw-r--r--.
  2. Read the other form and what the owner, group and others can do.
  3. Copy the chmod command.

How it works

Each class (owner, group, others) gets a digit made by adding read = 4, write = 2 and execute = 1. A leading fourth digit adds special bits: setuid = 4, setgid = 2 and sticky = 1. In the symbolic form these show as s or S (setuid, setgid) and t or T (sticky), where a lowercase letter means execute is also set and an uppercase letter means it is not.

Examples

  • 755 is rwxr-xr-x: the owner can do everything, everyone else can read and run. 644 is rw-r--r--, the usual mode for ordinary files.

Limitations

  • Only the numeric and nine-character symbolic forms are supported, not relative changes such as u+x or g-w.
  • Meaning depends on the system: for example, execute on a directory means permission to enter it. Avoid 777 on anything exposed to other users. Access control lists and file attributes are not covered.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].