Skip to content

Instantly share code, notes, and snippets.

@olivmonnier
Last active August 29, 2015 14:14
Show Gist options
  • Save olivmonnier/852eb4d41e16cc11d260 to your computer and use it in GitHub Desktop.
Save olivmonnier/852eb4d41e16cc11d260 to your computer and use it in GitHub Desktop.
MAC OS Vagrant privilieges administrator on /etc/exports
sudo visudo
#Add these lines
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