Use it for security reviews of shared data, or when ACLs grant more than intended.
ACL (Access Control List) · Security
ACLs (POSIX access control lists) extend file permissions with entries for named users and groups and inheritable defaults.
1. Files with ACLs: getfacl -R -s -p <dir> | grep '# file'.
2. Review entries and mask.
3. Remove unneeded: setfacl -x u:<user> <path>.
4. Defaults on directories as intended?
5. Test access as the users.
ACL entries → mask limits them → effective rights enforced
For Security → ACL, continue with the first unproven Topic check: Record exact host, distribution/kernel, boot ID, time window, workload, identity and the authoritative configuration/policy source for ACL. If that boundary is healthy, advance to the adjacent check: Read back the effective runtime state and precedence rather than assuming an edited file, package state or service status is active. 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
process UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operation
Healthy evidence: access ACL entries and mask produce the intended rights, default inheritance is understood, and real-user create/read/write tests match policy
Step 2 Verification and output interpretation Verify boundary
Verification chain. process UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operation
Step 3 Verification path Verify boundary
Exercise one safe negative or boundary case implied by UID/GID mismatch, stale group membership, ACL/mode conflict, missing capability, noexec/readonly mount, SELinux denial, AppArmor denial, expired/untrusted certificate or secret exposure.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: mask silently removes rights, duplicate/group matches change effective class, default ACL causes unexpected inheritance, filesystem/mount support differs, or ACL is blamed while an LSM or path traversal is the actual blocker
Step 5 Branching troubleshooting Narrow the fault
Concrete boundaries: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back.
Step 6 Where it fails Narrow the fault
Walk identity/group resolution → Unix mode/ACL/capability → mount/sandbox constraint → SELinux/AppArmor policy → credential/TLS trust → protected operation and stop where observed state diverges.
Common failure classes are UID/GID mismatch, stale group membership, ACL/mode conflict, missing capability, noexec/readonly mount, SELinux denial, AppArmor denial, expired/untrusted certificate or secret exposure.
Do not infer root cause from one symptom. Connection refused can be process, socket binding, namespace, firewall or routing; permission denied can be Unix mode/ACL, mount option, capability or MAC policy; a full filesystem can be blocks, inodes, deleted-open files, snapshots or thin-pool exhaustion. Correlate native state across the responsible layers.
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.
Review with getfacl -R; watch the mask, which limits named entries. Backups and copies must preserve ACLs.
sestatus / aa-status— SELinux or AppArmor statess -tulpn— listening servicesjournalctl -u sshd -g 'Failed'— failed loginsausearch -m avc,user_login -ts today— audit events (auditd)
ReferenceWhat it is1 section · depth on demand
Common mistakes
- ACL mask limiting effective permissions unexpectedly.
ReferenceWhy it matters1 section · depth on demand
How it works in operation
File access crosses process credentials/namespace, VFS path lookup, mount namespace, DAC/ACL and optional LSM policy, filesystem metadata and block/backend I/O. Permission denial can arise from path traversal, ACL, capabilities or SELinux/AppArmor independently.
ReferenceHow it works1 section · depth on demand
Quick reference
POSIX ACLs extend owner/group/other with named users and groups, plus default ACLs that new files inherit.
setfacl -m u:alice:rwX /srv/projects
setfacl -m g:devops:rX -R /srv/projects
setfacl -d -m g:devops:rwX /srv/projects # default ACL for new files
getfacl /srv/projects
setfacl -b /srv/projects # remove all ACLs
The ACL mask caps the effective rights of named users and groups (and the responsible group); chmod g-w on a file with ACLs lowers the mask, silently reducing ACL permissions. A + after the mode in ls -l shows that ACLs exist.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
ACL diagnosis is resolved when the matching ACL entry and mask are resolved for the real identity and the original access test confirms the intended result.
File access crosses process credentials/namespace, VFS path lookup, mount namespace, DAC/ACL and optional LSM policy, filesystem metadata and block/backend I/O. Permission denial can arise from path traversal, ACL, capabilities or SELinux/AppArmor independently. Close with Inspect the path and mount in the process namespace, effective UID/GID/ACL/LSM decision, filesystem/inode state and backend errors, then repeat the original file operation. and state what the evidence does not show.
In depth
ACLs in security reviews
POSIX ACLs give access to named users and groups beyond the owner, group and others. That's useful, but easy to overlook in reviews. Plain ls -l shows only a + sign, not who has access. The acl(5) manual page explains two points that matter for security:
- The group permission bits shown by
ls -landstatare the ACL mask when an ACL exists, not the owning group's own permissions. - Named user and group entries are limited by that mask.
A file can therefore look like rw-r----- while a named user has more access than the file's group. The manual also describes default ACLs on directories, which are inherited by new files and override the umask.
What to check
| Check | Command |
|---|---|
| Find every file with an ACL in a tree | getfacl -R -s -p /srv 2>/dev/null | grep '^# file' |
| Who has access to a file | getfacl -p <file> |
| Effective rights after the mask | getfacl -c <file> (#effective: comments) |
| Default ACLs that grant access to new files | getfacl -d <dir> |
| Entries for deleted users and groups | Numeric UIDs or GIDs in getfacl output |
Typical findings
| Finding | Risk |
|---|---|
An old user:contractor:rwx entry | Access survives after the person left (if the account was only locked) |
| A default ACL granting a broad group write access | Every new file is writable by that group |
ACLs on secrets (/etc/app/*.key) | More readers than the mode suggests |
| Numeric entries for deleted users | A future account with the same UID inherits the access |
Backup and restore
Many copy and backup tools drop ACLs unless told otherwise (cp -a, rsync -A, tar --acls). A restore without ACLs can then silently remove access. Record the ACLs with getfacl -R as part of the backup.
host$ sudo getfacl -R -s -p /srv /etc/app 2>/dev/null | grep '^# file' | head
# file: /srv/reports
# file: /etc/app/payments.key
host$ sudo getfacl -p /etc/app/payments.key
# file: /etc/app/payments.key
# owner: root
# group: payments
user::rw-
user:1187:r--
group::r--
mask::r--
other::---
host$ getent passwd 1187 || echo "UID 1187 has no account"
UID 1187 has no account
host$ sudo setfacl -x u:1187 /etc/app/payments.key
host$ ls -l /etc/app/payments.key
-rw-r----- 1 root payments 3243 Nov 12 10:20 /etc/app/payments.key
Reading the example
The key file had a read entry for UID 1187, which no longer belongs to any account. If a new user ever got that UID, they could read the payment key. After removing the entry, the + disappears from ls -l, so no extended ACL remains.
Documented example, not captured output.
How it works at runtime
ACL is part of Security → ACL. Linux ACLs extend discretionary permissions with named users/groups, default ACLs and an effective mask that can limit entries beyond what their displayed permissions suggest.
Runtime state ownership and mechanics. Linux security composes authentication (PAM and service mechanisms), identity/credentials, DAC permissions/ACLs, capabilities, LSM policy such as SELinux/AppArmor, audit and service/network policy.
Topic-specific state model. Linux ACLs extend discretionary permissions with named users/groups, default ACLs and an effective mask that can limit entries beyond what their displayed permissions suggest.
Technical metadata. Linux distribution/kernel + boot/time + user/group/process/service identity + PAM/SSH/DAC/ACL + SELinux/AppArmor mode/context/profile + audit/log correlation + key/certificate/SAN/EKU/chain/trust store/SNI + original workload result.
Interpretation rule. - An ACL entry showing rwx ≠ effective rwx when the ACL mask removes rights.
- Default ACLs affect new children ≠ retroactively rewriting existing objects.
Mechanics
Follow the path in order: identity/group resolution → Unix mode/ACL/capability → mount/sandbox constraint → SELinux/AppArmor policy → credential/TLS trust → protected operation.
Important negative cases include UID/GID mismatch, stale group membership, ACL/mode conflict, missing capability, noexec/readonly mount, SELinux denial, AppArmor denial, expired/untrusted certificate or secret exposure.
Limits and how it fails
Primary failure point. ACL diagnosis is resolved when the matching ACL entry and mask are resolved for the real identity and the original access test confirms the intended result.
Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. ACL owns POSIX ACL evaluation; File Permissions owns base DAC modes and filesystem/security modules may impose additional controls.
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 Security → ACL. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/security/index.html · 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
ACL operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for ACL.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux ACLs extend discretionary permissions with named users/groups, default ACLs and an effective mask that can limit entries beyond what their displayed permissions suggest. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + boot/time + real identity/workload → identify authoritative policy/key/trust source → read back loaded/effective runtime state → reproduce one safe allow/deny/handshake test → correlate audit/service/kernel evidence → locate first failed boundary → make the smallest persistent change → repeat original workload + regression/recovery check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | process UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operation | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | ACL diagnosis closes when the matching ACL entry and mask are resolved for the real identity and the original access test confirms the intended result. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux security/trust evidence can establish this proof path: process UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operation | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove unobserved identities, objects, policies, namespaces, endpoints or time periods. ACL diagnosis closes when the matching ACL entry and mask are resolved for the real identity and the original access test confirms the intended result. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven security/trust boundary, capture the adjacent effective state and audit/handshake evidence, make only the demonstrated persistent change, then repeat the original workload plus recovery/regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
ACL · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | ACL |
|---|---|
| Topic path | Security → ACL |
| Runtime state | Linux ACLs extend discretionary permissions with named users/groups, default ACLs and an effective mask that can limit entries beyond what their displayed permissions suggest. |
| Fast checks | - Record exact host, distribution/kernel, boot ID, time window, workload, identity and the authoritative configuration/policy source for ACL. - Read back the effective runtime state and precedence rather than assuming an edited file, package state or service status is active. - Reproduce one safe allowed/denied or handshake/access test and correlate kernel/service/audit evidence at the first relevant boundary. - Apply the smallest persistent cause-specific change, then repeat the original test plus an adjacent regression/recovery check. |
| Verification chain | process UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operation 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 | ACL diagnosis closes when the matching ACL entry and mask are resolved for the real identity and the original access test confirms the intended result. Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
Deep reference
Healthy vs suspicious evidence
Commands
getfacl /srv/data
setfacl -m g:ops:rx /srv/data