#!/usr/local/bin/bash
# Recursive AFS set access
# invoke with:
#   fsr dir user-id perms
# does a recursive 'fs sa' on dir and all its subdirectories to set
# the user-id to have permissions given by perm
# typical permissions: read, write
# typical user-id: system:anyuser, or a specific ccid
#
find $1 -type d -exec fs setacl {} $2 $3 \;
