From ae8caa734f55d3a78d86eb385ca7513d204b90f0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 21 Sep 2014 18:41:05 -0400 Subject: [PATCH] vagrant: Don't use %wheel for vagrant user See https://github.com/projectatomic/rpm-ostree/issues/29 --- src/scripts/trivial-autocompose-create-disks.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/trivial-autocompose-create-disks.sh b/src/scripts/trivial-autocompose-create-disks.sh index fa9b29d..528d35e 100755 --- a/src/scripts/trivial-autocompose-create-disks.sh +++ b/src/scripts/trivial-autocompose-create-disks.sh @@ -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