From: Andres Salomon Date: Tue, 19 Aug 2008 22:04:44 +0000 (-0400) Subject: initchroot: disable root passwd X-Git-Tag: v0.1~14 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3999439a05cec313e8568f60e1aff22a44c19270;p=xodist initchroot: disable root passwd Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index 322abe4..3f67d5f 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -105,6 +105,7 @@ EndSection EOF # add default user +(chroot ${ROOT_DIR} passwd -l root) (chroot ${ROOT_DIR} useradd -s /bin/bash ${DEFUSER}) (chroot ${ROOT_DIR} passwd -d ${DEFUSER}) (chroot ${ROOT_DIR} adduser ${DEFUSER} cdrom)