From 6e9fae0d27b110f6b29a8962e2dfb14fb28651a5 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 2 Oct 2011 08:48:34 -0700 Subject: [PATCH] fixing stack's passwdless sudo --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index e99d72c..2e87352 100755 --- a/stack.sh +++ b/stack.sh @@ -47,7 +47,7 @@ if [[ $EUID -eq 0 ]]; then useradd -U -G sudo -s /bin/bash -m stack fi echo "Making sure stack has passwordless sudo" - sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers + echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers echo "Copying files to stack user" cp -r -f `pwd` /home/stack/ THIS_DIR=$(basename $(dirname $(readlink -f $0)))