Define remote mountpoints for NFS mount requests
The exports file defines remote mountpoints for the NFS mount protocol according to the NFS server specification; see RFC 1094 (Network File System Protocol Specification) and RFC 1813 (NFS Version 3 Protocol Specification).
|There isn't a default version of this file; you can create your own if you need it.|
Each line in the file specifies one remote mountpoint. The first field contains the mount-point directory path, followed optionally by a list of options and/or a list of specific hosts separated by whitespace. If no specific hosts are specified, the mount point is exported to all hosts.
Here are the export options:
((client_ip & netmask) == network)
Let's now look at a sample file:
/usr -root=1 rickers snowhite.cis.uoguelph.ca /usr/local 126.96.36.199 /u -root=5 -mask=255.255.240.0 -match=188.8.131.52 /u2 -ro -mask=255.0.0.0 -match=10.0.0.0 node11 node23
The above example specifies the following:
|This mountpoint:||Is exported:|
|/usr||To hosts rickers and snowhite.cis.uoguelph.ca only, with root mapped to 1 and with read/write access.|
|/usr/local||To host 184.108.40.206 only, with root mapped to -2 and with read/write access.|
|/u||To all hosts within 220.127.116.11 to 18.104.22.168, with root mapped to 5 and with read/write access.|
|/u2||To hosts node11 and node23 and to hosts belonging to IP network 10 only, with root mapped to -2 and with read-only access.|
1 subnet per mountpoint
10 hosts per mountpoint