Breakdown
| Class | Digit | Symbolic | Read | Write | Execute |
|---|---|---|---|---|---|
| Owner (u) | 0 | --- | — | — | — |
| Group (g) | 0 | --- | — | — | — |
| Others (o) | 0 | --- | — | — | — |
owner 0 = 0 · group 0 = 0 · others 0 = 0
Commands
chmod 000 file.txt
chmod u=,g=,o= file.txt # same thing, symbolic
chmod -R 000 folder/ # recursive (careful: applies to files and directories)
find folder -type f -exec chmod 000 {} + # only files
Applied to a directory
- Owner (u): cannot 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
- Nobody but root can access the file.