Last active
August 29, 2015 13:56
-
-
Save dominykas/8976043 to your computer and use it in GitHub Desktop.
Use this to get NFS on vagrant to work without password on CentOS: /etc/sudoers/10vagrant
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
Cmnd_Alias NFS_APPLY = /usr/sbin/exportfs -ar | |
Cmnd_Alias NFS_START = /etc/init.d/nfs-kernel-server start | |
Cmnd_Alias NFS_RESTART = /sbin/service nfs restart | |
Cmnd_Alias EXPORT_CLEANUP = /bin/sed -r -e * -ibak /etc/exports | |
Cmnd_Alias EXPORT_ADD = /usr/bin/tee -a /etc/exports | |
%vboxusers ALL=(root) NOPASSWD: NFS_APPLY, NFS_START, NFS_RESTART, EXPORT_CLEANUP, EXPORT_ADD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/mitchellh/vagrant/blob/master/plugins/hosts/linux/host.rb
https://github.com/mitchellh/vagrant/blob/master/plugins/synced_folders/nfs/synced_folder.rb
hashicorp/vagrant#1153 (comment)
https://gist.github.com/beddari/1472018
https://gist.github.com/joemaller/6764700