We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aea5dcd + bc3d1df commit 5fdd748Copy full SHA for 5fdd748
script/vagrant.sh
@@ -20,7 +20,8 @@ if [ "$INSTALL_VAGRANT_KEY" = "true" ] || [ "$INSTALL_VAGRANT_KEY" = "1" ]; then
20
21
# Set up sudo
22
echo "==> Giving ${SSH_USER} sudo powers"
23
- echo "${SSH_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+ echo "${SSH_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
24
+ chmod 440 /etc/sudoers.d/vagrant
25
26
# Fix stdin not being a tty
27
if grep -q -E "^mesg n$" /root/.profile && sed -i "s/^mesg n$/tty -s \\&\\& mesg n/g" /root/.profile; then
0 commit comments