Skip to content

Instantly share code, notes, and snippets.

@joemaller
Last active February 15, 2018 04:03
Show Gist options
  • Select an option

  • Save joemaller/41912f5d027a4adc7c14 to your computer and use it in GitHub Desktop.

Select an option

Save joemaller/41912f5d027a4adc7c14 to your computer and use it in GitHub Desktop.
Sudoers additions for password-free Vagrant up. Save this file to /etc/sudoers.d/ with uid 0.
# Recommended with the Basic WordPress Vagrant project: https://github.com/ideasonpurpose/basic-wordpress-vagrant
# https://gist.github.com/41912f5d027a4adc7c14
Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp *.vagrant.d/tmp/hosts.local /etc/hosts
%admin ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment