We use the following script named rchacl (recursive change ACL) that uses
the find command like others have suggested.
#!/bin/sh
#
# Change ACL's recursively on directories in AFS
#
# 09/28/95 Mike Burns
#
# $1 = Directory
# $2 = AFS group
# $3 = permissions
fs1="/usr/afsws/bin/fs"
fs2="/usr/afs/bin/fs"
if [ -x $fs1 ]
then
fs=$fs1
else
fs=$fs2
fi
if [ $# != 3 ]
then
echo "Usage: $0 directory AFSgroup AFSpermissions"
exit 1
fi
find $1 -type d -exec $fs setacl -dir {} -acl $2 $3 \;
exit 0
On Wed, 11 Oct 2000, iddwb wrote:
>
> I would like to set an acl on all directories below the current dir. I've
> tried
>
> fs setacl -dir */* -acl userid none
>
> and it doesn't work. I've also tried just using
>
> fs setacl -dir * -acl userid none
>
> to set the acl for all directories of the current directory. This fails
> also. I'm beginning to beleive that the fs command is really crippled
> from the command line.
>
> So I'm hoping that someon has written a script wrapper to help fs descend
> into all subdirectories of the current.
>
> Any advice?
>
> David Bear
> College of Public Programs/ASU
>
>
- Mike
--------------------------------------------------------------------------
Mike Burns UNIX Systems Group
[EMAIL PROTECTED] Center for Academic Computing
+1 814 863 5606 The Pennsylvania State University