How to use it
- Type an octal mode such as 644, or the nine-character form such as rw-r--r--.
- Read the other form and what the owner, group and others can do.
- Copy the chmod command.
How it works
Each class (owner, group, others) gets a digit made by adding read = 4, write = 2 and execute = 1. A leading fourth digit adds special bits: setuid = 4, setgid = 2 and sticky = 1. In the symbolic form these show as s or S (setuid, setgid) and t or T (sticky), where a lowercase letter means execute is also set and an uppercase letter means it is not.
Examples
- 755 is rwxr-xr-x: the owner can do everything, everyone else can read and run. 644 is rw-r--r--, the usual mode for ordinary files.
Limitations
- Only the numeric and nine-character symbolic forms are supported, not relative changes such as u+x or g-w.
- Meaning depends on the system: for example, execute on a directory means permission to enter it. Avoid 777 on anything exposed to other users. Access control lists and file attributes are not covered.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.