Use it when several users or groups need different access to the same files and mode bits are not enough.
ACL (Access Control List) · Permissions & Ownership
POSIX ACLs (access control lists) add permissions for specific extra users and groups beyond owner/group/others, and default ACLs make new files in a directory inherit them.
1. ls -l — + present?
2. getfacl <path> — entries, mask and effective rights.
3. Grant: setfacl -m u:<user>:rwX <path>; inherit: setfacl -d -m g:<grp>:rwX <dir>.
4. Effective rights limited → check the mask.
5. Test as the user.
mode bits → ACL entries checked (owner, named users, group and named groups limited by mask, others) → access granted or denied
For Permissions & Ownership → ACL, continue with the first unproven Topic check: Capture the full ACL without losing numeric UID/GID context. If that boundary is healthy, advance to the adjacent check: Identify the matching owner/named-user/group/named-group/other path and apply the mask. 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/GID/groups → inode access ACL → matching ACL class/entry → ACL mask → requested rwx semantics → non-DAC constraints → access decision → result
Healthy evidence: the intended principal matches the expected ACL entry, the mask preserves required rights and access/default inheritance behave as designed.
Step 2 Verification and output interpretation Verify boundary
Inspect ownership/mode/ACL information on every relevant path component and validate sudo policy using the invoking identity and command context.
Existing fast checks for this Topic. - Capture the full ACL without losing numeric UID/GID context.
- Identify the matching owner/named-user/group/named-group/other path and apply the mask.
- For directories, inspect default ACL separately and test creation inheritance with a controlled child.
- Repeat the original operation with the real process identity.
Verification chain. process UID/GID/groups → inode access ACL → matching ACL class/entry → ACL mask → requested rwx semantics → non-DAC constraints → access decision → result
Step 3 Specialized verification Verify boundary
Inspect numeric owner/group, mode bits and the complete ACL on every relevant path component. getfacl output that includes “effective:” is decisive when the mask narrows a nominal entry. Test access using the same process identity and supplementary groups as the failing consumer, ideally in a new session if group membership changed. If access still fails with sufficient DAC/ACL rights, move to mount flags, capabilities, SELinux/AppArmor or application policy rather than continuing to widen the ACL.
Step 4 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 5 Failure modes and next checks Narrow the fault
Suspicious evidence: mask is ignored, default and access ACL are conflated, or mode bits are changed in ways that unexpectedly rewrite effective ACL class permissions.
It does not show behavior outside the captured identity source, process credential, filesystem object, DAC/ACL, privilege or workload scope. An ACL entry shows configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers.
Next check: Continue from the first step that has not been verified: 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.
Step 6 Common mistakes Narrow the fault
- Forgetting default ACLs for new files.
Step 7 Special cases and limits Narrow the fault
An ACL can grant or restrict discretionary access but cannot override a read-only mount, immutable attribute, missing execute permission on a parent directory, LSM denial or application authorization. The ACL mask is not the same as the file’s group entry even though the group-class mode bits mirror mask permissions. Default ACLs affect creation behavior, not current descendants. “Works as root” only shows that authorization context matters; it does not identify ACL as the failing mechanism.
Step 8 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.
ls -l shows + after the mode when an ACL exists. The ACL mask limits all named entries and the group — chmod changes the mask and can silently reduce ACL access. Copy and backup tools must preserve ACLs (cp -a, rsync -A, tar --acls).
getfacl <path>— ACL entries and effective rightsls -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
Read the full access ACL and, for directories, any default ACL separately. Determine which ACL entry matches the process and apply the mask before concluding effective rights. The traditional group mode bits reflect the ACL mask when an extended ACL is present, so a permissive named entry can still be ineffective if the mask is restrictive.
ReferenceWhy it matters1 section · depth on demand
Overview
POSIX ACLs when owner/group/other are not enough:
setfacl -m u:auditor:rX /srv/finance
setfacl -R -m g:finance:rwX /srv/finance
setfacl -d -m g:finance:rwX /srv/finance # defaults for new files
getfacl -p /srv/finance
getfacl -R /srv/finance > acl-backup.txt; setfacl --restore=acl-backup.txt
Filesystems must support ACLs (ext4/XFS/Btrfs do by default). cp without -a/--preserve=all, and some archive tools without --acls, silently drop ACLs.
ReferenceImportant terms & boundaries6 sections · depth on demand
What this shows and what it does not
An ACL entry shows configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers.
In depth
POSIX ACLs: entries, mask and access checks
ACLs extend the owner, group and others model with entries for additional users and groups. The acl(5) manual page defines the entry types:
- ACL_USER_OBJ for the owner, ACL_GROUP_OBJ for the owning group, and ACL_OTHER for everyone else. Every ACL has exactly one of each.
- ACL_USER and ACL_GROUP entries name additional users and groups.
- An ACL_MASK caps the permissions that named users, named groups and the owning group can get. It's required as soon as named entries exist.
The access check (manual)
| Order | Matching | Permission granted by |
|---|---|---|
| 1 | The process is the owner | ACL_USER_OBJ only |
| 2 | A named user entry matches | That entry AND the mask |
| 3 | A matching group (owning or named) | The group entry AND the mask |
| 4 | None of the above | ACL_OTHER |
ACLs and chmod
When an ACL has a mask, the group bits shown by ls -l are the mask, not the owning group's own entry. A chmod g-w therefore lowers the mask, and so removes write from every named user and group. The manual states that the owner, group and other permission bits always match the corresponding ACL entries.
Default ACLs
A directory can have a default ACL, which new files and directories created in it inherit as their access ACL. The entries are then limited by the mode the creating program asked for. Without a default ACL, the umask decides as usual.
host$ ls -l /srv/reports/q4.csv
-rw-rw----+ 1 alice reports 4096 Nov 28 10:45 /srv/reports/q4.csv
host$ getfacl /srv/reports/q4.csv
# file: srv/reports/q4.csv
# owner: alice
# group: reports
user::rw-
user:bob:rw-
group::r--
group:auditors:r--
mask::rw-
other::---
host$ chmod g-w /srv/reports/q4.csv && getfacl -c /srv/reports/q4.csv | grep -E "bob|mask"
user:bob:rw- #effective:r--
mask::r--
Reading the example
The + after the mode in ls -l shows that an ACL exists. After chmod g-w, bob's entry still says rw-, but #effective:r-- shows that the mask now limits him to reading. That's the most common ACL surprise: chmod on the group bits changes the mask.
Documented example, not captured output.
How it works at runtime
ACL is part of Permissions & Ownership → ACL. POSIX ACLs extend classic owner/group/other mode permissions with named user and group entries plus a mask that limits effective permissions for named users, named groups and the responsible group class.
Runtime state ownership and mechanics. Linux authorization combines numeric UID/GID identity, supplementary groups, discretionary mode bits, ACLs, capabilities, sudo/PAM policy and optional LSM enforcement.
Topic-specific state model. POSIX ACLs extend classic owner/group/other mode permissions with named user and group entries plus a mask that limits effective permissions for named users, named groups and the responsible group class.
Technical metadata. Host/container/user-namespace identity, process PID/session/service, identity source/NSS result, username/group names, numeric UID/GID, real/effective/saved/fs credentials where relevant, supplementary groups, sudo invoking/target identity and matched policy, pathname + parent traversal, filesystem/inode, numeric owner/group, object type, octal/symbolic mode, SUID/SGID/sticky bits, access/default ACL entries and mask, mount flags and relevant non-DAC control, requested operation and original workload result.
Interpretation rule. - Named ACL entry permissions ≠ effective permissions when the ACL mask is narrower.
- Access ACL ≠ default ACL; default ACL controls inheritance on new children.
- Mode-bit display alone can hide why an extended ACL grants/limits access.
- ACL support/configuration ≠ every filesystem/mount behaves identically.
Specialized mechanics
POSIX access ACLs extend owner/group/other mode bits with named user and group entries while retaining a mask that limits the effective permissions of named users, named groups and the responsible group class. Default ACLs on directories act as inheritance templates for newly created children; they are not retroactive policy on existing files. The kernel ultimately evaluates numeric credentials against mode/ACL state after pathname traversal and before later LSM or application checks. An ACL listing must therefore be read together with owner, group and mask semantics.
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. An ACL entry shows configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers.
ReferenceConfiguration & state2 sections · depth on demand
Configuration, persistence and lifecycle
Permission changes should preserve least privilege and account for ACL masks, setuid/setgid semantics, sticky directories, file capabilities and LSM labels where applicable.
Specialized lifecycle
Use setfacl/getfacl-style interfaces to preserve ACL semantics and verify the filesystem and mount support them. When changing a named entry, inspect whether the ACL mask changes the effective rights; tools may recalculate the mask unless directed otherwise. For shared directories, design default ACLs alongside umask and application creation behavior. Backups, copy tools and migrations must be configured to preserve ACL metadata if it is part of the authorization model. Avoid broad chmod changes that silently collapse or invalidate an intentional ACL design.
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 → ACL. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.kernel.org/doc/man-pages/ · confidence 94%Authoritative Linux project/vendor documentation reviewed for bounded reference claims: access ACLs, default ACLs and permission-resolution boundaries. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.
Basis: https://man7.org/linux/man-pages/man5/acl.5.html · confidence 93%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 | POSIX ACLs extend classic owner/group/other mode permissions with named user and group entries plus a mask that limits effective permissions for named users, named groups and the owning group class. | 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 | process UID/GID/groups → inode access ACL → matching ACL class/entry → ACL mask → requested rwx semantics → non-DAC constraints → access decision → result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | An ACL entry proves configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers. | 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: process UID/GID/groups → inode access ACL → matching ACL class/entry → ACL mask → requested rwx semantics → non-DAC constraints → 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. An ACL entry proves configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers. | 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. |
ACL · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | ACL |
|---|---|
| Topic path | Permissions & Ownership → ACL |
| Runtime state | POSIX ACLs extend classic owner/group/other mode permissions with named user and group entries plus a mask that limits effective permissions for named users, named groups and the owning group class. |
| Fast checks | - Capture the full ACL without losing numeric UID/GID context. - Identify the matching owner/named-user/group/named-group/other path and apply the mask. - For directories, inspect default ACL separately and test creation inheritance with a controlled child. - Repeat the original operation with the real process identity. |
| Verification chain | process UID/GID/groups → inode access ACL → matching ACL class/entry → ACL mask → requested rwx semantics → non-DAC constraints → 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 | An ACL entry proves configured extended DAC policy, not effective rights until match and mask are evaluated, nor success beyond other security/application layers. 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. |
ACL · specialized operational reference
Topic-specific Linux mechanics, lifecycle, proof path and failure-boundary lookup.
| Operational boundary | Topic-specific reference |
|---|---|
| Entries | owner, named users, groups, mask, other |
| Mask | Limits named user/group and owning-group class |
| Default ACL | Inheritance template on directories |
| Proof | Same identity can perform original operation without LSM/mount denial |
Deep reference
Healthy vs suspicious evidence
Commands
getfacl dir
setfacl -m u:alice:rwx dir
setfacl -d -m g:dev:rwx dir