Leopard Server directory and file ACL removal

I found this terminal command for quick removal of ACLs from files and directories in mass. Found a need for this when restoring a system from a time machine backup that corrupted permissions on some files. (leopard 10.5.2) The restore added ACL’s to files that should never have them.The following works because one chmod will be executed for each directory, like we want:

find . -type d -exec chmod -a# 0 {} \;

Just replace the ‘type d’ above with ‘type f’ to remove the ACL for regular files.

–DocB

Info provided from unbounded.org

Leave a Comment

two × 1 =