Interview Prep/Linux/Permissions, Users & sudo

What is the ACL mask and why can it surprise you?

AdvancedConceptPermissions, Users & sudo
Answer

The mask entry is the upper bound for all named users, named groups and the owning group. If the mask is r--, a user granted rwx effectively gets only r; getfacl shows #effective:r--. Running chmod g=r on a file with ACLs changes the mask, not the owning group entry, so it can silently reduce everyone's ACL rights. Reset it with setfacl -m m::rwx file.

All Linux questions Roadmap: Linux

More on Permissions, Users & sudo