numeric mode
A permission setting written as three digits, one each for owner, group and others, where read is 4, write 2 and execute 1.
In more detail
Add the values for each digit: 7 is all three rights, 6 read and write, 5 read and execute, 4 read only. 755 suits programs and directories, 644 ordinary files, and 600 private files such as keys.
Examples
chmod 755 run.shfind . -name secret.txt -perm 600Related terms
- chmod — A command that changes a file's permission bits, using either octal digits or symbolic changes.
- symbolic mode — A chmod permission change written as who, operator and rights, such as u+x or go-w.
- umask — The builtin, and the per-process setting it controls, that lists which permission bits are removed from every new file and directory.
Taught in
- Permissions And Ownership — Bash Scripting & Command Line Automation