From 8d8f5e35340981f78e7063a8fbae23c65fe9ae2b Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Thu, 11 Sep 2008 19:50:56 -0400 Subject: [PATCH] initchroot: disable sudo's passwd checking for user olpc ...since olpc doesn't have a password. Signed-off-by: Andres Salomon --- initchroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initchroot.sh b/initchroot.sh index 156def5..1d4f3dd 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -212,7 +212,7 @@ rm -rf ${ROOT_DIR}/home/*; # i have no idea what's adding this crap... (chroot ${ROOT_DIR} adduser ${DEFUSER} netdev) (chroot ${ROOT_DIR} adduser ${DEFUSER} powerdev) (chroot ${ROOT_DIR} adduser ${DEFUSER} floppy) -echo "${DEFUSER} ALL=(ALL) ALL" >> ${ROOT_DIR}/etc/sudoers +echo "${DEFUSER} ALL=(ALL) NOPASSWD: ALL" >> ${ROOT_DIR}/etc/sudoers # done, clean up mv ${ROOT_DIR}/sbin/start-stop-daemon.REAL ${ROOT_DIR}/sbin/start-stop-daemon -- 2.39.5