I'm trying to find the terminal command on a Mac to remove ACL to fix user permissions on a folder that gives an error code when I try to copy it (error code -41).
Asked
Active
Viewed 5.3k times
2 Answers
63
Using chmod -a allows one to remove access control entries individually (as @geekosaur suggested).
But if you are looking to remove all ACLs from a file or folder, the solution is to use the brute-force option: chmod -N which removes all access control entries for a file or folder.
chmod -RN will do the same recursively for a folder and its entire contents.
Laurent Giroud
- 193
Gordon Davisson
- 36,087