Linux ACL File Systems

Topics · Published 2019-06-25 · Revised 2026-11-23
Technical corrections applied locally; original wording preserved separately · Joomla source

3,281 Total views across this article’s versions; includes the historical baseline where available.

Linux already has a basic file-permission system: an owner, an owning group, and read, write, and execute permissions for the owner, group, and everyone else. Extended POSIX ACLs add finer control, such as permissions for an additional named user or group. A file without an extended ACL is not automatically open to everyone. See the Linux file-mode documentation and ACL manual.

ACL is an acronym for “Access Control List.” In Linux documentation, the three ordinary permission entries can themselves be described as a minimal ACL. Here, extended ACL means permissions beyond those basic owner/group/other entries. The name “POSIX ACL” is conventional; the underlying POSIX.1e draft did not become a final standard.

Ordinary Permissions and Extended ACLs

Consider a regular file owned by alice, with owning group editors and mode 0640 (rw-r-----), with no extended ACL:

User File-content access from these mode bits
alice, the owner Read and write
Another user who belongs to editors Read
A user who is neither the owner nor a member of editors None

This example assumes an ordinary, unprivileged process and a path the user can traverse. The owner does not also need permission through the owning group. For ordinary mode checks, the owner class is selected first, then the group class for a matching group member, then other. These are not three permissions that every user must pass together. Linux documents these classes in inode(7).

An extended ACL can add a named user while leaving everyone else’s access restricted. The ACL mask limits the effective permissions of named users and group entries; it does not limit the owner or other entry. With a mask present, the group bits shown by ls -l represent that mask, not just the owning group’s permissions. Changing those bits with chmod can therefore change effective ACL access. See acl(5).

For example, these illustrative getfacl entries grant bob read access, despite the rw- in his entry:

user::rw-
user:bob:rw-                 #effective:r--
group::r--
mask::r--
other::---

bob is a separate user from the owner. The mask removes his effective write permission. This is an example of how to read an ACL, not output captured from a tested server. getfacl(1) explains the effective-permission annotations.

Directory permissions matter too. A user needs search (x) permission on each directory traversed to reach a file. Directory read permission allows listing its names; it does not replace search permission. A file’s read permission alone is therefore insufficient when its parent path is inaccessible. See path_resolution(7).

Why would anyone use a file system without extended ACLs?

Ordinary owner/group permissions may already express the required policy. File-system support, portability, and administration also matter. You do not need an extended ACL merely to keep a private file private. Conversely, removing an ACL that your policy relies on can change who has access; inspect the resulting permissions rather than assuming either unrestricted access or equivalent protection.

Security, Integrity, and Speed

Security, data integrity, and speed can involve trade-offs, but they are not mutually exclusive. Access permissions control who may act on data. They do not, by themselves, establish its authenticity or protect it against disk failure. The performance cost of a particular access-control mechanism needs a workload-specific measurement.

The cited 2003 paper by Andreas Grünbacher reports experiments on then-current hardware and file systems, not a ten-year performance study. In Table 4, one XFS configuration took 14 microseconds without an ACL and 7,531 microseconds with one for an initial permission check after restart—about 538 times as long. The inode had already been read, but retrieving an externally stored ACL could require another disk access. That is not a file-transfer-speed ratio, and it was not the largest ratio in that table. [1]

The paper measures file-copy workloads separately and describes much smaller differences there. Its historical results do not establish a general performance penalty for modern extended ACLs. Measure the actual system and workload before drawing that conclusion.

Samba and NFS: Separate File-Sharing Services

Samba implements SMB file sharing; NFS is a separate protocol and service. Samba is not an NFS-to-SMB translator. Both can run on the same machine, but a normal Samba connection does not pass through NFS authentication.

For a conventional Samba share backed by Linux permissions, access depends on the share’s rules, the server-side user identity, and the underlying file and directory permissions. Successful authentication does not grant access to the entire server. Extended ACLs can refine that policy; their absence does not erase ordinary mode permissions. Samba also has ACL modules that affect how Windows permissions are stored and enforced, so the actual configuration matters.

NFS’s trust assumptions depend on its security configuration. AUTH_SYS relies on client-supplied numeric user and group IDs; Kerberos security flavors provide a different authentication model. Neither description means that file authorization stops once a share is mounted. NFSv4 defines server-side access checks and their relationship to client caching.

A compromised account can exercise the permissions it has. It does not automatically become root, and an extended ACL is not a guarantee against a privileged compromise. For the detailed access-control path and configuration caveats, see Security Implications of Samba Access to Non-ACL File Systems.

References

[1] Grünbacher, A. (2003). SuSE Labs. POSIX Access Control Lists on Linux. USENIX Annual Technical Conference, FREENIX Track. See “EA and ACL Performance,” especially Tables 4–6.