How `755`, `644`, and `600` Octal Bits Add Up
Each digit sums `Read (4) + Write (2) + Execute (1)`: `7 = rwx`, `6 = rw-`, `5 = r-x`, `4 = r--`. Standard web directories use `755`, config/static files use `644`, and SSH private keys require `600`.
Quickly compute Unix/Linux file permissions without second-guessing `755` vs `644` vs `600`. Toggle Owner, Group, and Others Read/Write/Execute checkboxes—or type any 3-digit octal number—and copy the exact `chmod` command.
Toggle Read (`4`), Write (`2`), and Execute (`1`) checkboxes across Owner, Group, and Others.
Or enter a 3-digit octal code (such as `755`, `644`, `600`) to decode symbolic bits.
Select common safe templates for scripts, static files, or SSH keys.
Copy the generated `chmod` shell command directly.
Each digit sums `Read (4) + Write (2) + Execute (1)`: `7 = rwx`, `6 = rw-`, `5 = r-x`, `4 = r--`. Standard web directories use `755`, config/static files use `644`, and SSH private keys require `600`.
Granting `777` lets every local system user modify or run files, creating unnecessary escalation risk on multi-tenant hosts and web servers.
On directories, `x` grants permission to traverse (`cd`) into the directory and access file inodes inside—so folders use `755` while plain files use `644`.
OpenSSH refuses private keys readable by group or other users; run `chmod 600 ~/.ssh/id_rsa` to lock read/write strictly to Owner.