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 -llisting. - Writing the chmod command for a deployment script or Dockerfile.
- Understanding setuid, setgid and sticky bit settings on shared directories.
