Fix domtool-addcert for when user running is not in `wheel'
[hcoop/domtool2.git] / scripts / domtool-addacl
CommitLineData
385c3534
AC
1#!/bin/sh -e
2
906a79a6
DO
3USER="$1"
4if test -z "$USER"; then
5 echo Usage: domtool-addacl USERNAME
6 exit 1
7fi
8
46ff8d37 9HOMEPATH=`getent passwd $USER | cut -d : -f 6`
906a79a6
DO
10
11domtool-admin grant $USER user $USER
12domtool-admin grant $USER path $HOMEPATH
ffc8cf43
AM
13
14# disabled since we want to discourage the use of unix groups
906a79a6 15#domtool-admin grant $USER group $USER