[OpenAFS] Re: [OpenAFS] Setting ACL´s in recursive directories.

Derrick J Brashear shadow@dementia.org
Wed, 16 Jul 2003 15:46:29 -0400 (EDT)


On Wed, 16 Jul 2003, Russ Allbery wrote:

> Rogelio Bazán Reyes <rogbazan@bsantander.com.mx> writes:
>
> > Do you know how to set permissions recursively on a directory tree?
>
> AFS has no built-in capabilities to do this (unless they were added
> recently and I didn't notice).  In the absence of circular directory
> structures, you can approximate this with something like:
>
>     find . -type d -print | xargs fs sa -acl <acl> -dir
>
> We have an fsr Perl script we use here at Stanford that does basically the
> above with some more safeguards, but right now it has some bugs.  As soon
> as I find time to clean those up, I'll stick it up on my software page.

I didn't write it but:
/afs/andrew.cmu.edu/usr/shadow/ws.c

ws . -d "fs sa %f system:anyuser rl"

for instance