🔒 Chmod Calculator
Interactive Unix file permissions calculator. Set permissions with checkboxes, numeric input, or symbolic notation and see all representations update in real time.
Last updated: November 8, 2026 · By the BoltQuickTools team
| Read (4) | Write (2) | Execute (1) | |
|---|---|---|---|
| Owner (u) | |||
| Group (g) | |||
| Others (o) |
| Permission | Enabled | Value |
|---|---|---|
| Setuid (SUID) | 4 | |
| Setgid (SGID) | 2 | |
| Sticky Bit | 1 |
What Each Permission Means
Translate between 755 and rwxr-xr-x
Anyone setting permissions on a Linux server, reading ls -l output or following install instructions runs into octal modes. This page converts between checkboxes, octal digits and the symbolic form, and states in words what each class of user can do.
Three ways in
- Click a button under Common Presets, such as 755 or 600.
- Tick boxes in the Permission Grid and under Special Permissions (Setuid, Setgid, Sticky Bit).
- Type in Numeric (Octal) or Symbolic.
The Numeric and Symbolic cards, the Command line with its Copy button and the What Each Permission Means list all update together. Changing Context between Regular File and Directory alters only the leading character and the wording of the explanations. The permission bits stay the same.
Results for some real modes
| Numeric input | Context | Symbolic card | Command |
|---|---|---|---|
2775 | Directory | drwxrwsr-x | chmod 2775 filename |
1777 | Directory | drwxrwxrwt | chmod 1777 filename |
4755 | Regular File | -rwsr-xr-x | chmod 4755 filename |
4644 | Regular File | -rwSr--r-- | chmod 4644 filename |
With 2775 on a directory, the explanation adds SGID: New files inherit the directory group, the usual setup for a shared project folder. The capital S in the last row means setuid is on but the owner has no execute permission, which is rarely what anyone wants.
Input traps
- The Symbolic box takes nine characters and no file-type letter. Pasting all of
-rw-r--r--fromls -lgets cut to nine characters and is ignored. Leave off the first character. - Capital S and T typed into Symbolic are read as lowercase.
rwSr--r--becomes4744and-rwsr--r--, which adds an execute bit you did not ask for. To get a capital S, enter the numeric form (4644). - Bad input is ignored without a message. A digit of 8 or 9, or fewer than three digits, leaves the previous result on screen.
- The command is a template. Replace
filenamewith your path. It always uses the numeric form and sets the mode outright, rather than adding or removing single bits asu+xdoes. - The explanations treat each bit alone. For a directory, write without execute reads "Can create/delete files in directory", but creating or deleting files actually needs both write and execute on that directory.
- Setuid on a directory and the sticky bit on a file are listed if you tick them, but Linux ignores both.
Applying it safely
Avoid running chmod -R 755 across a tree, because every plain file becomes executable. chmod -R u=rwX,go=rX path gives directories execute permission while leaving non-executable files alone. Note too that GNU chmod keeps setuid and setgid on directories when given three digits, so chmod 755 will not clear them. You need chmod 00755 or chmod g-s.
Is 0755 different from 755?
For the permission bits, no. The leading digit holds the special bits, and 0 means none are set. The Numeric card always shows four digits, while the Command line drops a leading zero.
What permissions do SSH keys need?
OpenSSH refuses a private key that others can read, so use 600 for the key file and 700 for ~/.ssh. Both are presets here. A pair can be created with the SSH key generator.
Why does my script still say "permission denied" after chmod?
Every directory on the path needs execute for your user, and a filesystem mounted with noexec blocks scripts whatever the mode says. If it is a scheduled job, check the schedule as well with the cron parser.