diff --git a/xCAT-server/share/xcat/scripts/setup-local-client.sh b/xCAT-server/share/xcat/scripts/setup-local-client.sh index 617ba6fea..cf6afda21 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=`grep ^$1: /etc/passwd | cut -d: -f6` + USERHOME=`lsuser -a home root | cut -d'=' -f2` fi else CNA="$1"