Linux
chmod Permission Calculator
Convert between octal and symbolic file modes, including setuid, setgid and the sticky bit.
Permissions
| Class | Read (4) | Write (2) | Execute (1) | Digit |
|---|---|---|---|---|
| Owner | 6 | |||
| Group | 4 | |||
| Other | 4 |
Octal
Four digits including the special bits: 0644
Symbolic
Also accepts the leading type character from ls -l.
Command
chmod 644 <file>Symbolic form: chmod u=rw,g=r,o=r <file>
- The owner can read, write.
- Group members can read.
- Everyone else can read.
Common modes