Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Numeric Permissions

Direct answer

Numeric (octal) permissions write the mode as digits: r=4, w=2, x=1, summed per class — 644 is rw-r--r--, 755 rwxr-xr-x, 600 rw-------. A fourth leading digit sets SUID (4), SGID (2) and sticky (1).

When to use this

Use it to set or read permissions quickly with chmod, or to compare with what a service requires.

First 30 seconds

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.

Operational verification

digits per class → bits set with chmod → umask applied to new files → kernel checks bits on access

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it to set or read permissions quickly with chmod, or to compare with what a service requires.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

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.

Key checks
  • umask — default mask for new files
  • ls -l <path> — owner, group and mode
  • stat -c '%A %a %U:%G' <path> — symbolic and numeric mode with owner
  • namei -l <path> — permissions of every directory on the path
  • id <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

ModeSymbolicTypical use
644rw-r--r--Ordinary files, readable by everyone
600rw-------Private files: keys, authorized_keys
640rw-r-----Readable by a group, e.g. config files with secrets
755rwxr-xr-xPrograms, scripts and ordinary directories
750rwxr-x---Directories for one group
700rwx------Private directories: ~/.ssh
2770rwxrws---Shared group directory with setgid
1777rwxrwxrwt/tmp: everyone writes, sticky bit protects files
4755rwsr-xr-xSet-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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).

ModeTypical use
644Regular files
640Config with secrets readable by group
600Private keys, credentials
755Directories, executables
750Group-only directories
2770Shared 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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
linux octal permissions755 permissionschmod numeric moderwx octal
Embedded reference data

Quick lookup tables

Numeric Permissions operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Numeric Permissions.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateNumeric 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 verificationPin 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 chaininode mode octal → special bits + owner/group/other rwx → process class selection → ACL/non-DAC adjustment → object-type semantics → access decision → resultTrace requested/configured state through effective state to the observed workload result.
Failure boundaryNumeric 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 evidenceCorrelated 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 → resultUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryNumeric Permissions
Topic pathPermissions & Ownership → Numeric Permissions
Runtime stateNumeric 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 chaininode 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 boundaryNumeric 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?