File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ mkswap /swapfile
7575echo " /swapfile none swap defaults 0 0" >> /etc/fstab
7676
7777# sudo
78- echo " %vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
78+ echo " %vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant
79+ chmod 0440 /etc/sudoers.d/vagrant
7980
8081# Fix for https://github.com/CentOS/sig-cloud-instance-build/issues/38
8182cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ mkswap /swapfile
8484echo " /swapfile none swap defaults 0 0" >> /etc/fstab
8585
8686# sudo
87- echo " %vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
87+ echo " %vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant
88+ chmod 0440 /etc/sudoers.d/vagrant
8889
8990# Fix for https://github.com/CentOS/sig-cloud-instance-build/issues/38
9091cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
You can’t perform that action at this time.
0 commit comments