On Linux, the POSIX ACL mask sets the ceiling for permissions granted to named users and groups. A requested permission only takes effect when the mask allows it. Learn how this limit works alongside owner and other permissions to make file access easier to understand and manage.

Multiple Choice

In an Access Control List (ACL) enabled file, which component defines the maximum effective permissions that can be granted to all entries?

In POSIX ACLs, the component that sets the upper limit on what any named user or named group can receive is the mask entry. It acts as a cap for all user and group entries, so the effective permissions for those entries are the intersection of what the entry requests and what the mask allows. The owner’s permissions and the world/other permissions are governed by the traditional owner, group, and other bits (and the world entry in the ACL), and are not constrained by the mask in the same way. If a named entry asks for more rights than the mask permits, the mask wins and the entry’s actual rights are limited accordingly. This is why the mask defines the maximum effective permissions that can be granted to all entries.

Understanding the ACL Mask in Linux File Permissions

Linux file permissions look simple at first: a file has an owner, a group, and a set of permissions for everyone else. But shared systems often need finer control. A team member may need to read a file without editing it, while a service account needs to write to it. POSIX Access Control Lists, or ACLs, make that possible. Within an extended ACL, the ACL mask sets a limit on the effective permissions available to certain users and groups.

The mask is easy to overlook because it doesn’t grant access by itself. Instead, it acts like a ceiling. An ACL entry can request read, write, and execute permissions, but the mask determines how much of that access can actually take effect.

From basic permissions to ACLs

Every Linux file has traditional permission fields for three classes: the owner, the owning group, and others. A command such as ls -l displays these permissions in a compact form:


-rw-r----- 1 maya developers 2400 Nov 22 10:15 report.txt

Here, Maya can read and write the file, members of the developers group can read it, and others have no access. That setup works well when access needs fall neatly into those three classes.

Real systems don’t always cooperate. Suppose one contractor needs read access, while another needs to edit the file. Adding both people to the owning group may give them the same access, which isn’t what the administrator wants. ACLs allow additional entries for named users and groups, giving the file more detailed rules without changing its owner or group.

You can view an ACL with getfacl:


getfacl report.txt

A file with extended ACL entries might show:


# file: report.txt

# owner: maya

# group: developers

user::rw-

user:leo:r--

group::r--

group:design:rw-

mask::r--

other::---

The entries give Leo read access and the design group read-and-write permissions. Yet the mask is r--, so the effective permissions for those entries are limited to read access. The design group’s requested write permission is present in its entry, but it can’t take effect while the mask excludes write.

That’s the key idea: the mask places a cap on effective access.

What the mask actually limits

In a POSIX ACL, the mask applies to the group class of entries. That class includes:

  • Named user entries, such as user:leo:r--

  • The owning group entry, shown as group::r--

  • Named group entries, such as group:design:rw-

The effective permissions for a covered entry are the intersection of that entry’s permissions and the mask’s permissions. In plain language, a permission must appear in both places to be effective.

For instance, if a named user entry says rw- and the mask says r--, the user’s effective access is r--. Read permission appears in both, so it remains. Write appears in the entry but not the mask, so it is removed from the effective set.

The mask doesn’t affect every ACL entry. The file owner’s permissions, represented by user::, are not limited by the mask. Neither are the permissions for others, represented by other::. This distinction matters when reading ACL output: the mask is not a universal ceiling for every person who might access a file. It limits the group-class entries.

Why the mask can be surprising

An ACL listing may appear to grant a user or group more access than they can actually use. In the earlier example, group:design:rw- appears to allow writing. But the mask is r--, so the effective permissions are only r--.

getfacl often makes this clearer by showing an effective-permissions comment:


group:design:rw-              #effective:r--

That comment is a useful clue. The raw entry records the permissions assigned to the named group; the effective value shows what remains after the mask is applied. If a person reports that write access is missing, the mask is one of the first things worth checking.

This setup can seem contradictory: the ACL says rw-, but the user still can’t write. There’s no contradiction once the mask is understood. The entry describes the access being requested, while the mask limits the access that can take effect.

Changing the mask safely

The setfacl command can change an ACL mask. For example:


setfacl -m m:rw- report.txt

This sets the mask to read and write. If the named group entry still has rw-, its effective permissions can now include write. A mask can also be recalculated from the permissions in the ACL entries:


setfacl -m m::rw- report.txt

After changing an ACL, it’s sensible to check the result:


getfacl report.txt

That quick review can catch a common source of confusion: changing the mask may alter effective access without changing the permissions written beside a named user or group. The reverse can happen, too. A named entry may be edited, but a restrictive mask may keep the effective permissions unchanged.

Traditional permission changes can affect ACLs as well. For a file with an extended ACL, the group permission bits shown by ls -l correspond to the ACL mask, rather than necessarily showing the owning group entry’s raw permissions. As a result, a command such as chmod may change the mask and reduce effective access for named users or groups. When ACLs are in use, it’s worth checking with getfacl after changing permissions.

The mask is different from a default ACL

A default ACL is another feature with a similar-sounding name, but it serves a different purpose. A default ACL is set on a directory and provides permission rules that newly created files and subdirectories can inherit. It doesn’t directly define the maximum effective permissions for existing ACL entries.

For example, an administrator might set a default ACL on a shared project directory so new files start with access for a specific team. The ACL mask on an individual file still governs the effective permissions for that file’s group-class entries. One shapes what new items inherit; the other caps effective access on an ACL.

This difference is useful when managing shared folders. If newly created files don’t receive the expected entries, investigate the directory’s default ACL. If an existing named user or group has fewer effective permissions than its entry suggests, inspect the file’s mask.

A small ceiling with a big role

ACLs give Linux administrators more control than the basic owner-group-other model can provide. The ACL mask helps keep that extra detail manageable by setting the maximum effective permissions for named users, the owning group, and named groups. It doesn’t grant permissions on its own, and it doesn’t limit the owner or the other entry.

When ACL access seems puzzling, read the entries together rather than in isolation. Check the named user or group, inspect the mask, and confirm the effective permissions with getfacl. The mask may look like just one more line in a long ACL, but it often explains why access is broader—or narrower—than the file’s entries first suggest.