Redhat:NFS exports

From Define Wiki
Revision as of 15:33, 22 August 2013 by Michael (talk | contribs) (Created page with "== exports file == The /etc/exports file is used to configure the directories for NFS. When the exportfs -a command is run it exports the directories listed so they can be m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

exports file

The /etc/exports file is used to configure the directories for NFS. When the exportfs -a command is run it exports the directories listed so they can be mounted on NFS clients.

Each line exports a single directory, according the the networks and options listed.

/depot/shared 172.16.0.0/255.255.0.0(rw,async,fsid=0)
/depot/shared 172.28.0.0/255.255.0.0(rw,async,no_root_squash)
/home 172.16.0.0/255.255.0.0(rw,async,no_root_squash)
/home 172.28.0.0/255.255.0.0(rw,async,no_root_squash)

In the example the /depot/shared direcotry is exported to the 172.16 and 172.28 networks with teh options listed.



Export Options

insecure communication above port 1024 fopr NFS 2 and 3
insecure_locks Does not check user permissions - used for NFS 2 and 3
no_subtree_check Disables permissions checks for super directories
sync Syncs write operations - on by default
no_wdelay Immediate writes
hide Hide files systems
mp export only if mounted
fsid set the file system id