mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 08:10:12 +00:00
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
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user