Skip to content

Commit

Permalink
Merge pull request #1067 from kbpease/kbpease/fix-sudoers.d-vagrant-p…
Browse files Browse the repository at this point in the history
…erms

Set correct permissions on /etc/sudoers.d/vagrant
  • Loading branch information
Seth Thomas authored Jun 26, 2018
2 parents 1100b28 + 7f74581 commit 5d3ead7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions centos/http/6/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ virt-what
sed -i -e 's/\(^SELINUX=\).*$/\1permissive/' /etc/selinux/config
# sudo
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
chmod 0440 /etc/sudoers.d/vagrant

#Enable hyper-v daemons only if using hyper-v virtualization
if [ $(virt-what) == "hyperv" ]; then
Expand Down
1 change: 1 addition & 0 deletions centos/http/7/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ deltarpm
%post
# sudo
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
chmod 0440 /etc/sudoers.d/vagrant

#Enable hyper-v daemons only if using hyper-v virtualization
if [ $(virt-what) == "hyperv" ]; then
Expand Down

0 comments on commit 5d3ead7

Please sign in to comment.