42

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).

Teresa
  • 421

2 Answers2

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.

5

It's all bundled into the chmod command; take a look at the -a/+a/=a options in the manpage.

geekosaur
  • 12,091