Scripts to bootstrap a development domtool environment
[hcoop/domtool2.git] / scripts / domtool-addacl
... / ...
CommitLineData
1#!/bin/sh -e
2
3USER="$1"
4if test -z "$USER"; then
5 echo Usage: domtool-addacl USERNAME
6 exit 1
7fi
8
9PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER
10HOMEPATH=/afs/hcoop.net/user/$PATHBITS
11
12domtool-admin grant $USER user $USER
13domtool-admin grant $USER path $HOMEPATH
14
15# disabled since we want to discourage the use of unix groups
16#domtool-admin grant $USER group $USER