Breakdown
| Class | Digit | Symbolic | Read | Write | Execute |
|---|---|---|---|---|---|
| Owner (u) | 6 | rw- | ✔ | ✔ | — |
| Group (g) | 0 | --- | — | — | — |
| Others (o) | 0 | --- | — | — | — |
owner 6 = 4 + 2 · group 0 = 0 · others 0 = 0
Commands
chmod 600 file.txt
chmod u=rw,g=,o= file.txt # same thing, symbolic
chmod -R 600 folder/ # recursive (careful: applies to files and directories)
find folder -type f -exec chmod 600 {} + # only files
Applied to a directory
- Owner (u): can list names, cannot create or delete entries, cannot enter.
- Group (g): cannot list names, cannot create or delete entries, cannot enter.
- Others (o): cannot list names, cannot create or delete entries, cannot enter.
Things to know
- No unusual risks: this is a conventional combination.