Skip to content

Instantly share code, notes, and snippets.

@eddiejaoude
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddiejaoude/6cd3f11d1fb66e36e57f to your computer and use it in GitHub Desktop.
Save eddiejaoude/6cd3f11d1fb66e36e57f to your computer and use it in GitHub Desktop.
Mac vagrant up asks for sudo password

tested on

Mac, vagrant, ansible, ubuntu, docker


Adding the following to sudoers

Note: make sure you remove/comment out the original %admin ... line

Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports
%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment