Chmod Calculator
Linux permissions: octal ⇄ symbolicRuns locally · nothing uploaded
| Read r | Write w | Execute x | # | |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Others (o) | 5 |
Special bits
chmod 755 script.sh
Common permissions
| Permission | Symbolic | Typical use |
|---|---|---|
| -rw-r--r-- | Regular files: owner read/write, others read | |
| -rwxr-xr-x | Directories, scripts and executables | |
| -rw------- | Private files such as SSH keys | |
| -rwx------ | Private directories such as ~/.ssh | |
| -rwxrwxr-x | Shared group directories | |
| -rw-rw-rw- | Everyone can read/write (insecure) | |
| -rwxrwxrwx | Everyone can do everything (avoid) | |
| -rwxrwxrwt | Shared dirs like /tmp (sticky bit) |
Also works as:chmod 755unix permissions calculatorrwx calculator
How to use
- 1Tick permissions or type an octal value.
- 2Add special bits if needed.
- 3Copy the chmod command.
FAQ
What does 755 mean?
Owner read/write/execute, group and others read/execute: rwxr-xr-x.
Why avoid 777?
Anyone can modify and run the file, which is a security risk.