Created
January 4, 2018 22:37
-
-
Save mklasen/e9484b08b79a8fe11db190c80ac7912d to your computer and use it in GitHub Desktop.
Working vagrant-hostupdater sudoers.d file for MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow passwordless startup of Vagrant with vagrant-hostsupdater. | |
Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts | |
Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts | |
%admin ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment