Q&A: Can I reset POSIX ACLs for a folder?

Question

Can I reset POSIX ACLs for a folder?

Answer

Yes, you can.

Option 1

Remove all ACLs.
Use tar from this article to remove all ACLs.

Option 2

Transfer ACLs from a folder with correct ACLs.
First, configure the ACLs on a working folder as they should be. Afterwards, transfer ACLs from this folder to the target one:

getfacl folder_ok | setfacl --set-file=- /path/to/brokenfolder

See Also

Mastodon