Use it when configuring, checking or troubleshooting Linux Permissions in Linux Security.
Linux Permissions
Linux Permissions implement discretionary access control through owner/group identity, mode bits, directory traversal semantics, ACLs, umask and special setuid/setgid/sticky behavior across filesystems and mounts.
process UID/GID → mode/ACL check → allow/deny
Context & applicabilityCommon mistakes · platform/version boundaries
A mode or ACL entry shows one discretionary policy component, but it does not show effective access, safe content or mandatory-control outcome.
Suspicious evidence: wrong group cache, parent execute missing, default ACL surprise, setgid inheritance, world-writable path, symlink race, root/capability bypass or container namespace confusion.
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 Verification path Verify boundary
process credentials → path traversal/mount namespace → inode owner/group/mode/ACL → LSM/capability checks → filesystem operation → audit/application outcome
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.
- Readable directory ≠ file content readable without execute/traverse semantics.
- Mode bits ≠ complete access decision when ACLs, capabilities, LSMs or mounts apply.
- Configuration file present ≠ parsed, loaded and effective runtime state.
- One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
ls -l <path>; stat <path>— mode and ownerfind / -xdev -perm -4000 -type f 2>/dev/null— SUID filesfind / -xdev -type d -perm -0002 ! -perm -1000 2>/dev/null— world-writable dirs without sticky bit
ReferenceWhat it is1 section · depth on demand
Reading and setting permissions
ls -l file # -rw-r----- 1 root adm ...
chmod 640 file # owner rw, group r, others none
chown root:adm file
chmod u+s /usr/bin/prog # setuid (dangerous if writable)
chmod 1777 /tmp # sticky bit: only owners delete their files
getfacl file ; setfacl -m u:alice:r file
umask # default permissions for new files
Documented example, not captured output. Find risky files: find / -perm -4000 -type f (setuid) and find / -perm -o+w -type f (world-writable).
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A mode or ACL entry shows one discretionary policy component, but it does not show effective access, safe content or mandatory-control outcome.
In depth
Linux permissions control access to files and directories with owner/group/other read, write and execute bits, plus special bits and optional ACLs. Correct permissions prevent users and compromised services from reading secrets or modifying system files.
| Mode | Meaning |
|---|---|
640 on a config | Owner read/write, group read, others nothing |
600 on a private key | Owner only |
755 on a directory | Everyone can enter and list; only owner writes |
setuid (4755) | Runs as file owner — security sensitive |
sticky bit on /tmp (1777) | Users can only delete their own files |
find / -xdev -perm -4000 -type f 2>/dev/null # setuid binaries
find /etc -perm -o+w -type f 2>/dev/null # world-writable configs
setfacl -m g:netops:r /etc/app/config.yml
getfacl /etc/app/config.yml
Review setuid binaries and world-writable files regularly — they are classic privilege escalation paths.
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 Linux Security → Linux Permissions. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/security/ · confidence 94%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
Linux Security → Linux Permissions proof map
Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → Linux Permissions.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |