From 1cd2118cc1dc7dc521df03604d1d61506d9bad7c Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Tue, 19 Aug 2008 18:45:32 -0400 Subject: [PATCH] initchroot: create proper homedir when creating user Signed-off-by: Andres Salomon --- initchroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5