Skip to content
TabBench

Chmod Permissions Calculator

Calculate Linux and Unix file permissions with an interactive 3x3 matrix, octal, and symbolic codes.

Runs in your browser. Nothing you add is uploaded.

What the Chmod Permissions Calculator does

Tick read, write and execute for the owner, the group and everyone else, and this calculator shows the matching octal mode (755), the symbolic string ls -l prints (-rwxr-xr-x), the u=,g=,o= form, and ready-to-copy chmod commands. It works in reverse too: type an octal value or a symbolic string and the checkboxes follow. The setuid, setgid and sticky bits are included, shown with the s, S, t and T letters that ls uses for them.

How to work out chmod permissions

  1. Pick a preset (folder 755, file 644, SSH key 600, ~/.ssh 700, executable script 755, shared /tmp 1777, read-only 444) or start from the grid.
  2. Tick Read (4), Write (2) and Execute (1) for Owner, Group and Others.
  3. Add SUID, SGID or the sticky bit if you need them; the octal value gains a fourth, leading digit.
  4. Or type an octal value or a 9- or 10-character symbolic string to set the grid from it.
  5. Copy the command you need: plain, recursive, symbolic, or the find commands that set directories and files separately.

The Chmod Permissions Calculator runs entirely in your browser — nothing you enter is uploaded, stored, or logged.

How it works

Octal mode from permission bits

digit   = 4 × read + 2 × write + 1 × execute
special = 4 × setuid + 2 × setgid + 1 × sticky
mode    = [special] owner group others

One digit each for owner, group and others, plus an optional leading digit for the special bits. The symbolic string shows the same bits as letters, with s or t replacing x where a special bit is set.

Example: Owner rwx (4 + 2 + 1 = 7), group r-x (4 + 1 = 5), others r-x (5) → 755, shown as -rwxr-xr-x. Adding setgid gives 2755, shown as -rwxr-sr-x.

When to use it

Fixing SSH key errors

ssh refuses a private key that other users can read and prints 'UNPROTECTED PRIVATE KEY FILE'. chmod 600 on the key (read and write for the owner only) fixes it, and the ~/.ssh directory itself should be 700. Both are presets.

Web server files

The usual layout is 755 for directories and 644 for files: everyone can read, only the owner can change anything. Avoid chmod -R 755 on a whole site, which marks every file executable; the Fix Web Permissions command uses find to set directories and files separately.

Shared team directories

Setting the setgid bit on a directory (chmod 2775) makes new files inherit the directory's group instead of each creator's own group, so a team keeps access to each other's files. The sticky bit (as on /tmp, mode 1777) stops users deleting files they do not own.

Good to know

  • Each digit is the sum of r = 4, w = 2 and x = 1: 7 is rwx, 6 is rw-, 5 is r-x, 4 is r--.
  • On a directory, r lets you list the names in it, x lets you enter it and reach files inside, and w lets you create, rename and delete entries (which also needs x).
  • A capital S or T in the symbolic string means a special bit is set without the matching execute bit, which is usually a mistake.
  • chmod 777 lets any local user change or replace the file. If a web app only works with 777, the real problem is ownership: fix it with chown instead.
  • Linux ignores the setuid bit on shell scripts for security reasons; it only takes effect on compiled programs.

Frequently asked questions

What does chmod 755 mean?

Chmod 755 gives the Owner full Read, Write, and Execute permissions (7), while Group and Others can only Read and Execute (5). It is the standard permission for directories and executable scripts.

What is the Sticky Bit used for?

The Sticky bit (octal 1000, symbolic 't') is used on shared directories like /tmp. It allows multiple users to write files, but only the file owner or root can delete or rename them.

How do octal permissions add up?

Read = 4, write = 2, execute = 1, added up separately for owner, group and others. Read + write = 6, read + execute = 5, all three = 7, so rw-r--r-- is 644 and rwxr-x--- is 750.

What is SGID on a directory?

With SGID (2000) set on a directory, files and subdirectories created inside it take the directory's group rather than the primary group of the user who created them.

Is chmod 755 the same as chmod u=rwx,g=rx,o=rx?

Yes, both set exactly the same permissions. The symbolic form can also add or remove a single bit without touching the rest (chmod g+w file), which an octal value cannot do.

Page last updated . Found a wrong result or a mistake on this page? Let us know.