Interview Prep/Linux/Permissions, ownership, SELinux and mounts

An ACL was set with `setfacl -m u:bob:rw file`, but Bob still gets `Permission denied` writing to it.

IntermediateTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → The ACL mask limits effective permissions (a later chmod reduced the mask), or Bob can't traverse a parent directory.

Diagnose →

getfacl file          # look for "#effective:r--"
namei -l /path/to/file

Fix → setfacl -m m::rw file to raise the mask, and give x on parent directories (setfacl -m u:bob:x /path /path/to).

Prevent → Remember chmod g= changes the ACL mask on files with ACLs.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts