#!/bin/sh -e USER="$1" if test -z "$USER"; then echo Usage: domtool-addacl USERNAME exit 1 fi HOMEPATH=`getent passwd $USER | cut -d : -f 6` domtool-admin grant $USER user $USER domtool-admin grant $USER path $HOMEPATH # disabled since we want to discourage the use of unix groups #domtool-admin grant $USER group $USER