create-user: Own .domtool symlink, and own Maildir/(cur,new,tmp)
authormwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sun, 9 Dec 2007 01:01:37 +0000 (20:01 -0500)
committermwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sun, 9 Dec 2007 01:01:37 +0000 (20:01 -0500)
create-user

index 15ce41a..9a9276a 100755 (executable)
@@ -195,6 +195,7 @@ chown $USER:nogroup $HOMEPATH/.public/.domtool
 test -e $HOMEPATH/.domtool || \
     test -L $HOMEPATH/.domtool || \
         ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool
 test -e $HOMEPATH/.domtool || \
     test -L $HOMEPATH/.domtool || \
         ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool
+test -e $HOMEPATH/.domtool && chown $USER:nogroup $HOMEPATH/.domtool
 
 # Gitweb hosting
 test -L /var/cache/git/$USER || \
 
 # Gitweb hosting
 test -L /var/cache/git/$USER || \
@@ -219,6 +220,7 @@ if test ! -e $MAILPATH/new; then
             -e -a "From: postmaster@hcoop.net" \
             real-$USER
 fi
             -e -a "From: postmaster@hcoop.net" \
             real-$USER
 fi
+chown $USER:nogroup $MAILPATH/cur $MAILPATH/new $MAILPATH/tmp
 
 # Set up shared SpamAssassin folder
 if test -f $HOMEPATH/Maildir/shared-maildirs; then
 
 # Set up shared SpamAssassin folder
 if test -f $HOMEPATH/Maildir/shared-maildirs; then