How to use the chmod calculator
Tick the permissions each class of user should have. The octal number, the symbolic string and the full chmod command update together, and the line underneath spells out who can do what. You can also work backwards: type 640 into the octal box, or paste the first column of an ls -l listing such as -rw-r----- into the symbolic box, and the checkboxes follow. Preset buttons cover the modes people look up most often.
Common chmod values
| Octal | Symbolic | Typical use |
|---|---|---|
| 755 | rwxr-xr-x | Directories, scripts, binaries |
| 644 | rw-r--r-- | Web pages, images, most files |
| 700 | rwx------ | Private directories such as ~/.ssh |
| 600 | rw------- | SSH private keys, .env files, credentials |
| 664 / 775 | rw-rw-r-- / rwxrwxr-x | Files and folders shared with a group |
| 640 | rw-r----- | Config readable by a service's group, hidden from others |
| 1777 | rwxrwxrwt | Shared temp directories (sticky bit) |
SSH is strict about this: if a private key is readable by anyone but you, the client refuses to use it with an “unprotected private key file” warning. chmod 600 ~/.ssh/id_ed25519 fixes it. The guide to Linux file permissions explains the model in depth, including symbolic commands like chmod u+x and recursive changes. If a cron job fails because its script is not executable, the Cron Expression Parser helps check the schedule once the permissions are fixed.