Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

ACL (Access Control List) · Security

Direct answer

ACLs (POSIX access control lists) extend file permissions with entries for named users and groups and inheritable defaults.

When to use this

Use it for security reviews of shared data, or when ACLs grant more than intended.

First 30 seconds

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.

Operational verification

ACL entries → mask limits them → effective rights enforced

Evidence · next step

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
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 for security reviews of shared data, or when ACLs grant more than intended.
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.

6 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

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

Review with getfacl -R; watch the mask, which limits named entries. Backups and copies must preserve ACLs.

Key checks
  • sestatus / aa-status — SELinux or AppArmor state
  • ss -tulpn — listening services
  • journalctl -u sshd -g 'Failed' — failed logins
  • ausearch -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 -l and stat are 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

CheckCommand
Find every file with an ACL in a treegetfacl -R -s -p /srv 2>/dev/null | grep '^# file'
Who has access to a filegetfacl -p <file>
Effective rights after the maskgetfacl -c <file> (#effective: comments)
Default ACLs that grant access to new filesgetfacl -d <dir>
Entries for deleted users and groupsNumeric UIDs or GIDs in getfacl output

Typical findings

FindingRisk
An old user:contractor:rwx entryAccess survives after the person left (if the account was only locked)
A default ACL granting a broad group write accessEvery new file is writable by that group
ACLs on secrets (/etc/app/*.key)More readers than the mode suggests
Numeric entries for deleted usersA 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.

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

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.

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. 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
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 Security → ACL. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/security/index.html · 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 aclposix acl linuxgetfacl setfacl concepts
Embedded reference data

Quick lookup tables

ACL operational reference

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

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux 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 verificationPin 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 chainprocess UID/GIDs → path/inode → owner/mode → access ACL entries + mask → default ACL inheritance on creation → LSM/mount checks → workload operationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryACL 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 evidenceCorrelated 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 operationUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryACL
Topic pathSecurity → ACL
Runtime stateLinux 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 chainprocess 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 boundaryACL 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Commands

getfacl /srv/data
setfacl -m g:ops:rx /srv/data
Confirmation

Confirm action

Continue?