ToolPick

Chmod calculator

Convert Unix file permissions between checkboxes, octal modes like 754 and symbolic form like rwxr-xr--.

ClassReadWriteExecute
Owner
Group
Other

Result

chmod 644 file
rw-r--r--

How it works

Each class (owner, group, other) is one octal digit: read adds 4, write adds 2, execute adds 1. A fourth leading digit holds the special bits: setuid 4, setgid 2, sticky 1. In the symbolic form those appear in the execute position as s or t when execute is also set, and as S or T when it is not. Typing an octal or symbolic mode updates the checkboxes and the other field. The tool describes a mode; it does not change any file.

Runs in your browser; nothing is uploaded.

FAQ

What does 755 mean?

Owner can read, write and execute (7); group and other can read and execute (5). It is the usual mode for directories and executable files that everyone may run but only the owner may change.

What is the leading digit in 4755?

It carries the special bits: 4 is setuid (the program runs as its owner), 2 is setgid (runs with the file's group, or new files in a directory inherit its group) and 1 is the sticky bit (in a directory, only a file's owner may delete it, as in /tmp: 1777).

Why does the symbolic form show s or S?

Setuid and setgid share the execute position. A lowercase s means the special bit and execute are both set; an uppercase S means the special bit is set but execute is not, which is usually a mistake. The same applies to t and T for the sticky bit.

Related developer tools

Bookmark this page for next time, or copy its link. Shared links contain no working input.