Skip to content

Commit

Permalink
Merge pull request #453 from ergonlogic/debian7
Browse files Browse the repository at this point in the history
Move sudoers entry to sudoers.d.
  • Loading branch information
jedi4ever committed Dec 19, 2012
2 parents 977f494 + 1d7364c commit 664d170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions templates/Debian-7.0-b4-amd64-netboot/base.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ apt-get -y install curl unzip
apt-get clean apt-get clean


# Set up sudo # Set up sudo
cp /etc/sudoers /etc/sudoers.orig echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
sed -i -e 's/%sudo[ \t]*ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers


# Tweak sshd to prevent DNS resolution (speed up logins) # Tweak sshd to prevent DNS resolution (speed up logins)
echo 'UseDNS no' >> /etc/ssh/sshd_config echo 'UseDNS no' >> /etc/ssh/sshd_config
Expand Down
3 changes: 1 addition & 2 deletions templates/Debian-7.0-b4-i386-netboot/base.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ apt-get -y install curl unzip
apt-get clean apt-get clean


# Set up sudo # Set up sudo
cp /etc/sudoers /etc/sudoers.orig echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
sed -i -e 's/%sudo\s+ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers


# Tweak sshd to prevent DNS resolution (speed up logins) # Tweak sshd to prevent DNS resolution (speed up logins)
echo 'UseDNS no' >> /etc/ssh/sshd_config echo 'UseDNS no' >> /etc/ssh/sshd_config
Expand Down

0 comments on commit 664d170

Please sign in to comment.