Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Linux Permissions

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Linux Permissions in Linux Security.

First 30 seconds

1. Linux permissions: user/group/other rwx, special bits (SUID, SGID, sticky), ACLs.

2. Minimise SUID binaries.

3. umask 027 for servers.

4. No world-writable files.

5. ACLs for fine-grained access.

Operational verification

process UID/GID → mode/ACL check → allow/deny

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Platform and workload security
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.

PlatformPlatform and workload security
Scope / prerequisiteUse it when configuring, checking or troubleshooting Linux Permissions in Linux Security.
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.

1 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 Verification path Verify boundary

process credentials → path traversal/mount namespace → inode owner/group/mode/ACL → LSM/capability checks → filesystem operation → audit/application outcome

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
  • 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.
Key checks
  • ls -l <path>; stat <path> — mode and owner
  • find / -xdev -perm -4000 -type f 2>/dev/null — SUID files
  • find / -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.

ModeMeaning
640 on a configOwner read/write, group read, others nothing
600 on a private keyOwner only
755 on a directoryEveryone 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docPlatform and workload security current

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%
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
Unix file permissionsLinux DACLinux modes and ACLs
Embedded reference data

Quick lookup tables

Linux Security → Linux Permissions proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → Linux Permissions.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?