On Oct 27, 2011, at 2:16 PM, Richard Peskin wrote:

> Is there a way to recursively remove all ACL's in a directory? I tried "chmod 
> -R -a#  0 [directory path] " (where 0 is a possible ACL number id), but this 
> doesn't work. chmod -a# 0 filename works for a single file. PErhaps I need a 
> script to do this?

You can use find to do the recursive part if that's the part that's broken:

find /path/to/search -type d -exec chmod -a# 0 \{\}\;

That assumes your chmod command actually does what you want. The \{\} part is 
the found directory path, the \; terminates the exec command, and note that I 
use tcsh, so the escapes are for that shell, not sure what you need in bash.


sacha


-- 
Sacha Michel Mallais, CIO              AIM: smallais
Global Village Consulting, Inc.        PGP Key ID: 7D757B65
http://www.global-village.net/
The chance of being shot in the foot is directly correlated
to the number of ways to be shot in the foot.

_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to