Skip to content

Commit

Permalink
vagrant: Don't use %wheel for vagrant user
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Sep 21, 2014
1 parent 354ab51 commit ae8caa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scripts/trivial-autocompose-create-disks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ set -e
set -x
if ! getent passwd vagrant 1>/dev/null; then useradd vagrant; fi
echo "vagrant" | passwd --stdin vagrant
if ! groups vagrant | grep wheel; then usermod -a -G wheel vagrant; fi
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
echo '%wheel ALL=NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd-wheel
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
sed -i 's/.*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
mkdir -m 0700 -p ~vagrant/.ssh
cat > ~vagrant/.ssh/authorized_keys << EOKEYS
Expand Down

0 comments on commit ae8caa7

Please sign in to comment.