From ebad7b1a0772ed4d721d763f9f6c9b04bbc537a3 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 8 May 2013 15:33:34 -0300 Subject: [PATCH] Fix paswordless sudo for squeeze boxes Closes #63 --- boxes/debian/lxc-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/debian/lxc-template b/boxes/debian/lxc-template index d926857..a9677d1 100755 --- a/boxes/debian/lxc-template +++ b/boxes/debian/lxc-template @@ -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