From 752cbd0f1a4988c8dd592a4f9cd41c0ea6f0da31 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 18 Aug 2010 11:35:47 +0000 Subject: [PATCH] fix generating keys for user wipes out credentials for root git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/setup-local-client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/scripts/setup-local-client.sh b/xCAT-server/share/xcat/scripts/setup-local-client.sh index bc70797f6..b0e650422 100755 --- a/xCAT-server/share/xcat/scripts/setup-local-client.sh +++ b/xCAT-server/share/xcat/scripts/setup-local-client.sh @@ -25,7 +25,7 @@ if [ -z "$2" ]; then if [ -x /usr/bin/getent ];then USERHOME=`getent passwd $1|awk -F: '{print $6}'` else - USERHOME=`lsuser -a home root | cut -d'=' -f2` + USERHOME=`grep ^$1: /etc/passwd | cut -d: -f6` fi else CNA="$1"