HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in config
[hcoop/domtool2.git]
/
scripts
/
domtool-addacl
diff --git
a/scripts/domtool-addacl
b/scripts/domtool-addacl
index
7555bb1
..
56c3951
100755
(executable)
--- a/
scripts/domtool-addacl
+++ b/
scripts/domtool-addacl
@@
-1,7
+1,15
@@
#!/bin/sh -e
#!/bin/sh -e
-domtool-admin grant $1 user $1
-domtool-admin grant $1 path `echo ~$1`
+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
# disabled since we want to discourage the use of unix groups
-#domtool-admin grant $1 group $1
\ No newline at end of file
+#domtool-admin grant $USER group $USER