nfs server

Linux

# 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
/opt/data/drs/inspection
                samtl190-new.axa-canada.com
/opt/data/drs/inspection
                samtl192.axa-canada.com
#

Solaris

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