From 74e97319a964101a6ae1271a957caf09a768a91d Mon Sep 17 00:00:00 2001 From: mwolson_admin Date: Wed, 12 Dec 2007 12:24:56 -0500 Subject: [PATCH] create-user: Make .domtool symlink with correct ownership Apparently, it is not possible to change the ownership of a symlink that is in AFS. Presumably, that information is not paid attention to. It might just be for cosmetics that we do this. I'm leaving the existing symlinks in user directories alone, because I'd basically have to remove the symlink and make a new one, and I'd rather not disrupt service. --- create-user | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/create-user b/create-user index 9a9276a..ce6304f 100755 --- a/create-user +++ b/create-user @@ -194,8 +194,7 @@ mkdir -p $HOMEPATH/.public/.domtool 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 && chown $USER:nogroup $HOMEPATH/.domtool + sudo -u $USER ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool # Gitweb hosting test -L /var/cache/git/$USER || \ -- 2.20.1