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.
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate