From: Andres Salomon Date: Tue, 19 Aug 2008 22:45:32 +0000 (-0400) Subject: initchroot: create proper homedir when creating user X-Git-Tag: v0.1~12 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd2118cc1dc7dc521df03604d1d61506d9bad7c;p=xodist initchroot: create proper homedir when creating user Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index 6140cae..5ff695c 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -121,8 +121,9 @@ EndSection EOF # add default user +rm -rf ${ROOT_DIR}/home/*; # i have no idea what's adding this crap... (chroot ${ROOT_DIR} passwd -l root) -(chroot ${ROOT_DIR} useradd -s /bin/bash ${DEFUSER}) +(chroot ${ROOT_DIR} useradd -s /bin/bash --create-home ${DEFUSER}) (chroot ${ROOT_DIR} passwd -d ${DEFUSER}) (chroot ${ROOT_DIR} adduser ${DEFUSER} cdrom) (chroot ${ROOT_DIR} adduser ${DEFUSER} audio)