Use it to set or read permissions quickly with chmod, or to compare with what a service requires.
Numeric Permissions
1. stat -c '%a %n' <path> — current numeric mode.
2. Compare with what the program needs (e.g. 600 for SSH keys).
3. Set: chmod 640 <file>.
4. Trees: find <dir> -type d -exec chmod 755 {} + and -type f -exec chmod 644 {} +.
5. Check umask for new files.
digits per class → bits set with chmod → umask applied to new files → kernel checks bits on access
For Permissions & Ownership → Numeric Permissions, continue with the first unproven Topic check: Decode the full mode including special bits and object type. If that boundary is healthy, advance to the adjacent check: Identify whether owner, group or other class applies to the process. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
inode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → result
Healthy evidence: octal value decodes to the intended mode, the process matches the expected class and effective access matches the workload requirement.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Decode the full mode including special bits and object type.
- Identify whether owner, group or other class applies to the process.
- Check POSIX ACLs/mask before treating the three octal digits as final effective rights.
- Test the exact object-type operation rather than reasoning from a mode number alone.
Verification chain. inode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → result
Step 3 Commands Verify boundary
chmod 750 dir
chmod 640 file
stat -c '%a %n' file
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: 777 is used as a diagnostic endpoint, special bits are overlooked, or directory and file semantics are treated identically.
Step 5 Common mistakes Narrow the fault
- Using 777.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Common values: 644 files, 755 directories and programs, 600 private keys, 700 private directories. umask (often 022) removes bits from new files. chmod -R 755 on a tree also makes files executable — use find -type d/-type f separately.
umask— default mask for new filesls -l <path>— owner, group and modestat -c '%A %a %U:%G' <path>— symbolic and numeric mode with ownernamei -l <path>— permissions of every directory on the pathid <user>— user's groups
ReferenceWhat it is1 section · depth on demand
Core model
Decode each octal digit into read=4, write=2 and execute=1 for owner, group and other, and keep any SUID/SGID/sticky digit separate. Then determine which class the process actually matches and whether ACLs alter the effective rights. For directories, interpret r/w/x as list/create-remove/search semantics rather than file-data operations.
ReferenceHow it works1 section · depth on demand
How it works
How it works: A Linux flow is scoped to a network namespace and crosses socket/source selection, routing policy and FIB lookup, neighbor resolution, netfilter/eBPF/qdisc where configured, device/bridge/bond/VLAN layers and the physical/virtual link.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Numeric mode shows configured classic permission bits, not which class a process uses or whether ACL/non-DAC controls permit the operation.
In depth
Numeric (octal) permissions
Octal notation describes the whole mode in a few digits. The chmod(1) manual page explains the mapping:
- Read is 4, write is 2 and execute is 1, and each digit is the sum for one class.
- The last three digits are owner, group and others.
- An optional leading fourth digit holds the special bits: set-user-ID 4, set-group-ID 2 and sticky 1.
Common modes
| Mode | Symbolic | Typical use |
|---|---|---|
| 644 | rw-r--r-- | Ordinary files, readable by everyone |
| 600 | rw------- | Private files: keys, authorized_keys |
| 640 | rw-r----- | Readable by a group, e.g. config files with secrets |
| 755 | rwxr-xr-x | Programs, scripts and ordinary directories |
| 750 | rwxr-x--- | Directories for one group |
| 700 | rwx------ | Private directories: ~/.ssh |
| 2770 | rwxrws--- | Shared group directory with setgid |
| 1777 | rwxrwxrwt | /tmp: everyone writes, sticky bit protects files |
| 4755 | rwsr-xr-x | Set-user-ID program (passwd) |
umask and default modes
The umask(2) manual page explains that the umask is removed from the requested mode. With the common umask 022, a file requested as 0666 becomes 0644. The umask is inherited by child processes. When the parent directory has a default ACL, the umask is ignored and the ACL is inherited instead.
Directories and special bits
chmod keeps the set-user-ID and set-group-ID bits on directories unless told otherwise. To clear them with a numeric mode, use a leading zero (00755), or =755.
host$ umask
0022
host$ touch new.txt; mkdir newdir; stat -c '%a %n' new.txt newdir
644 new.txt
755 newdir
host$ chmod 640 /etc/app/secrets.conf
host$ chmod 2770 /srv/reports
host$ chmod 755 /srv/reports; stat -c '%a' /srv/reports
2755
host$ chmod 00755 /srv/reports; stat -c '%a' /srv/reports
755
host$ find /etc/ssh -name '*_key' -perm /077
Reading the example
chmod 755 didn't remove the setgid bit from the directory, as the manual describes. 00755 did. The final find lists private host keys that are accessible to group or others. That should return nothing, because sshd refuses to start with such keys.
Documented example, not captured output.
How it works at runtime
Numeric Permissions is part of Permissions & Ownership → Numeric Permissions. Numeric permissions express the owner/group/other rwx bit triplets as octal values, typically one digit per class with an optional leading special-bit digit; they are a compact representation of inode mode bits, not a complete access decision.
Topic-specific state model. Numeric permissions express the owner/group/other rwx bit triplets as octal values, typically one digit per class with an optional leading special-bit digit; they are a compact representation of inode mode bits, not a complete access decision.
Interpretation rule. - 0777 ≠ guaranteed access under ACL, LSM, mount or application policy.
- File execute bit ≠ executable content or successful program launch.
- Directory write without execute/search ≠ normal create/delete capability.
- Leading special-bit digit ≠ ordinary owner permission digit.
Quick reference
Numeric (octal) permissions: r=4, w=2, x=1 per class (owner, group, other); a leading digit adds special bits (4 SUID, 2 SGID, 1 sticky).
| Mode | Typical use |
|---|---|
| 644 | Regular files |
| 640 | Config with secrets readable by group |
| 600 | Private keys, credentials |
| 755 | Directories, executables |
| 750 | Group-only directories |
| 2770 | Shared group directory (SGID) |
| 1777 | /tmp |
chmod 640 /etc/app/app.conf
stat -c '%a %A %U:%G %n' /etc/app/app.conf
umask 027 # new files 640, dirs 750
Limits and how it fails
Primary failure point. Numeric mode shows configured classic permission bits, not which class a process uses or whether ACL/non-DAC controls permit the operation.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Numeric Permissions owns octal representation. Symbolic Permissions owns symbolic notation; ACL and special-bit topics own their deeper semantics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Permissions & Ownership → Numeric Permissions. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.kernel.org/doc/man-pages/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Numeric Permissions operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Numeric Permissions.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Numeric permissions express the owner/group/other rwx bit triplets as octal values, typically one digit per class with an optional leading special-bit digit; they are a compact representation of inode mode bits, not a complete access decision. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin the exact process/session → resolve user/group names to numeric UID/GID through the effective identity stack → capture effective UID/GID + supplementary groups → resolve every required path component and target inode → inspect numeric owner/group + mode + ACL/mask + special bits → capture sudo/privilege transition if present → account for non-DAC controls → repeat the original workload operation. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | inode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Numeric mode proves configured classic permission bits, not which class a process uses or whether ACL/non-DAC controls permit the operation. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux identity and authorization evidence can establish this proof path: inode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured identity source, process credential, filesystem object, DAC/ACL, privilege or workload scope. Numeric mode proves configured classic permission bits, not which class a process uses or whether ACL/non-DAC controls permit the operation. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: keep the same process/session, resolve numeric identity and groups, inspect each path component plus target ownership/mode/ACL/special bits, capture any privilege transition/non-DAC denial, then repeat the original operation before broadening permissions. | Continue to the next unresolved boundary while preserving the original test condition. |
Numeric Permissions · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Numeric Permissions |
|---|---|
| Topic path | Permissions & Ownership → Numeric Permissions |
| Runtime state | Numeric permissions express the owner/group/other rwx bit triplets as octal values, typically one digit per class with an optional leading special-bit digit; they are a compact representation of inode mode bits, not a complete access decision. |
| Fast checks | - Decode the full mode including special bits and object type. - Identify whether owner, group or other class applies to the process. - Check POSIX ACLs/mask before treating the three octal digits as final effective rights. - Test the exact object-type operation rather than reasoning from a mode number alone. |
| Verification chain | inode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Numeric mode proves configured classic permission bits, not which class a process uses or whether ACL/non-DAC controls permit the operation. Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |