Permalink
Browse files

Merge pull request #453 from ergonlogic/debian7

Move sudoers entry to sudoers.d.
  • Loading branch information...
2 parents 977f494 + 1d7364c commit 664d1703afafdce391d875f0c383982ff9d61a89 @jedi4ever committed Dec 19, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 templates/Debian-7.0-b4-amd64-netboot/base.sh
  2. +1 −2 templates/Debian-7.0-b4-i386-netboot/base.sh
View
3 templates/Debian-7.0-b4-amd64-netboot/base.sh
@@ -6,8 +6,7 @@ apt-get -y install curl unzip
apt-get clean
# Set up sudo
-cp /etc/sudoers /etc/sudoers.orig
-sed -i -e 's/%sudo[ \t]*ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
+echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
# Tweak sshd to prevent DNS resolution (speed up logins)
echo 'UseDNS no' >> /etc/ssh/sshd_config
View
3 templates/Debian-7.0-b4-i386-netboot/base.sh
@@ -6,8 +6,7 @@ apt-get -y install curl unzip
apt-get clean
# Set up sudo
-cp /etc/sudoers /etc/sudoers.orig
-sed -i -e 's/%sudo\s+ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
+echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
# Tweak sshd to prevent DNS resolution (speed up logins)
echo 'UseDNS no' >> /etc/ssh/sshd_config

0 comments on commit 664d170

Please sign in to comment.