nfs server


# cat /etc/exports
/path/to/export remoteserver1(ro) remoteserver2(rw,sync,root_squash,anonuid=501,anongid=501) 
# service nfs reload
  • By default root is denied
  • root_squash maps root to anonymous
  • no_root_squash maps root to root (mainly for diskless client)
  • all_squash maps all users to anonymous
  • anonuid sets anonymous uid to a specific uid
  • anongid sets anonymous gid to a specific gid

To list all exported file system:

# exportfs


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License