From: Andres Salomon Date: Thu, 11 Sep 2008 23:50:56 +0000 (-0400) Subject: initchroot: disable sudo's passwd checking for user olpc X-Git-Tag: v0.2~28 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8f5e35340981f78e7063a8fbae23c65fe9ae2b;p=xodist initchroot: disable sudo's passwd checking for user olpc ...since olpc doesn't have a password. Signed-off-by: Andres Salomon --- 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