change root home dir to /root
ssh need to read knownhosts from home directory, so change root home to /root Signed-off-by: Dave Young <dyoung@redhat.com>master
parent
4401925c82
commit
85bb744dfe
|
@ -23,7 +23,7 @@ install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#add common users in /etc/passwd, it will be used by nfs/ssh currently
|
#add common users in /etc/passwd, it will be used by nfs/ssh currently
|
||||||
egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo 'root:x:0:0::/:/bin/sh' >> "$initdir/etc/passwd"
|
egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo 'root:x:0:0::/root:/bin/sh' >> "$initdir/etc/passwd"
|
||||||
egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
|
egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
|
||||||
# install our scripts and hooks
|
# install our scripts and hooks
|
||||||
inst "$moddir/init" "/init"
|
inst "$moddir/init" "/init"
|
||||||
|
|
Loading…
Reference in New Issue