From: clinton_admin Date: Fri, 17 Oct 2014 17:25:36 +0000 (-0400) Subject: create-user: create ~/.domtool link as admin and chown X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/39aa6e0c47a244ef0c96e207261453468b910792 create-user: create ~/.domtool link as admin and chown Some security update appears to have changed sudo behavior slightly and tokens are lost. --- diff --git a/lib/create-user-lib.sh b/lib/create-user-lib.sh index 7497b59..4583b45 100644 --- a/lib/create-user-lib.sh +++ b/lib/create-user-lib.sh @@ -237,7 +237,8 @@ function seed_user_hcoop_directories () { chown $NEWUSER:nogroup $HOMEPATH/.public/.domtool test -e $HOMEPATH/.domtool || \ test -L $HOMEPATH/.domtool || \ - execute_on_domtool_server sudo -u $NEWUSER ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool + execute_on_domtool_server ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool + execute_on_domtool_server chown $NEWUSER $HOMEPATH/.domtool # ^^ work around sudo env_reset crap without having to # actually figure out how to make it work cleanly -- clinton, # 2011-11-30