]> spindle.queued.net Git - xodist/commitdiff
initchroot: disable sudo's passwd checking for user olpc
authorAndres Salomon <dilinger@debian.org>
Thu, 11 Sep 2008 23:50:56 +0000 (19:50 -0400)
committerAndres Salomon <dilinger@debian.org>
Thu, 11 Sep 2008 23:50:56 +0000 (19:50 -0400)
...since olpc doesn't have a password.

Signed-off-by: Andres Salomon <dilinger@debian.org>
initchroot.sh

index 156def58e8bab801b847b111f47d9b7ffa21bb03..1d4f3dd5d09a1effc8a6e6113fcd7ad4c13c0a66 100755 (executable)
@@ -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