Skip to content

Instantly share code, notes, and snippets.

@rherrick
Last active December 7, 2015 20:27
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 rherrick/f0fd34e983fa5ba19f3f to your computer and use it in GitHub Desktop.
Save rherrick/f0fd34e983fa5ba19f3f to your computer and use it in GitHub Desktop.
Export configuration for VM sharing in /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/data 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
/etc/default 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
/etc/tomcat7 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
/var/cache/tomcat7 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
/var/lib/tomcat7 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
/var/log/tomcat7 192.168.50.0/255.255.255.0(rw,sync,no_subtree_check,insecure,all_squash,anonuid=1001,anongid=100)
rherrick ALL=(root) NOPASSWD: /sbin/mount, /sbin/umount, /Users/rherrick/bin/mountvm.sh, /Users/rherrick/bin/umountvm.sh, /usr/local/bin/mvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment