Skip to content

Instantly share code, notes, and snippets.

@rickbenetti
Created January 8, 2016 10:03
Show Gist options
  • Save rickbenetti/05c83cfa77a5d21af77a to your computer and use it in GitHub Desktop.
Save rickbenetti/05c83cfa77a5d21af77a to your computer and use it in GitHub Desktop.
# Write a /etc/sudoers on OS X for vagrant 1.7.3 and above with these entries:
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