Fix paswordless sudo for squeeze boxes

Closes #63
This commit is contained in:
Fabio Rehm 2013-05-08 15:33:34 -03:00
parent a230a48411
commit ebad7b1a07

View file

@ -89,7 +89,7 @@ EOF
chroot $rootfs adduser vagrant sudo >/dev/null 2>&1 || true
chroot $rootfs cp /etc/sudoers /etc/sudoers.orig >/dev/null 2>&1 || true
chroot $rootfs sed -i -e \
's/%sudo\s\+ALL=(ALL:ALL)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
/etc/sudoers >/dev/null 2>&1 || true
fi