Stop getting blocked by hidden POSIX ACLs when chmod does nothing
Permissions & Security (Chmod/Chown/ACLs/SELinux/AppArmor)
Stop getting blocked by hidden POSIX ACLs when chmod does nothing
🧩 The Challenge
You know that feeling when you run chmod 777 on a file and it still gives you a Permission Denied error? It drives me up the wall, and it’s almost always because an Access Control List is hiding behind the standard bits.
💡 The Fix
Use the getfacl command to see what’s actually governing the file access. Once you see the extra entries, you can use setfacl to nuke the specific rule that’s tripping you up.
getfacl filename
setfacl -b filename
⚙️ Why It Works
Standard chmod only changes the owner, group, and other bits, but it ignores the advanced access control entries that getfacl exposes. Removing them with the -b flag wipes the slate clean and forces the system to respect your standard permissions again.
🚀 Pro-Tip: If you need to see if a directory has ACLs applied at a glance, look for the plus sign at the end of the mode string in your ls -l output.
Linux Tips & Tricks | © ngelinux.com | 12/2/2026
