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

fileshares
shares
q-a
acl

#1

Question

Can I reset ACLs for a folder?

Answer

Yes, you can. When your ACLs got corrupted and you can not access a folder from Windows create a new folder and apply correct ACLs through Windows.
Afterwards, on UCS transfer ACLs from one folder to the other:

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


Owner of file in a samba share changes - unwanted behavior