Commit | Line | Data |
---|---|---|
385c3534 AC |
1 | #!/bin/sh -e |
2 | ||
906a79a6 DO |
3 | USER="$1" |
4 | if test -z "$USER"; then | |
5 | echo Usage: domtool-addacl USERNAME | |
6 | exit 1 | |
7 | fi | |
8 | ||
9 | PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER | |
10 | HOMEPATH=/afs/hcoop.net/user/$PATHBITS | |
11 | ||
12 | domtool-admin grant $USER user $USER | |
13 | domtool-admin grant $USER path $HOMEPATH | |
ffc8cf43 AM |
14 | |
15 | # disabled since we want to discourage the use of unix groups | |
906a79a6 | 16 | #domtool-admin grant $USER group $USER |