Troubleshooting

getfacl report.txt shows user:alice:rw- and mask::r--. Alice cannot write to the file. What is the cause?

Show the answer

Correct answerB. The mask limits Alice's named entry, so her effective permission is read only

AWhy not this: Named user entries work on regular files as well as directories.

BWhy this is right: The mask caps named user, named group and owning group entries, so rw- masked by r-- gives read only.

CWhy not this: The other entry applies only to users matched by no other entry; Alice is matched by her named entry.

DWhy not this: The owning user entry applies only to the file's owner; it does not override Alice's named entry.

The ACL mask sets the maximum effective permissions for named user, named group and owning group entries, so a read-only mask limits the entry to read. Running chmod on the group bits changes the mask, which is a common cause of lost access.