Created
February 18, 2015 15:35
-
-
Save Ramblurr/3fbc11f797e61f0b1a03 to your computer and use it in GitHub Desktop.
Vagrant sudo permissions for NFS in Fedora.
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
## drop this in the new file /etc/sudoers.d/sudoers-vagrant | |
## add add your user to the vagrant group | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports | |
Cmnd_Alias VAGRANT_NFSD_CHECK = /usr/bin/systemctl status nfs-server | |
Cmnd_Alias VAGRANT_NFSD_START = /usr/bin/systemctl start nfs-server | |
Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar | |
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /etc/exports | |
%vagrant ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY, VAGRANT_EXPORTS_REMOVE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment