EXPORTS(5) BSD Programmer's Manual EXPORTS(5)
NAME
exports - define remote mount points for NFS mount requests
SYNOPSIS
exports
DESCRIPTION
The exports file specifies remote mount points for the NFS mount protocol
per the NFS server specification; see Network File System Protocol
Specification RFC 1094.
Each line in the file specifies one remote mount point. The first field
is the mount point directory path followed optionally by export options
and specific hosts separated by white space. Only the first entry for a
given local file system may specify the export options, since these are
handled on a per local file system basis. If no specific hosts are spec-
ified, the mount point is exported to all hosts.
The export options are as follows: -root=<uid> specifies how to map
root's uid (default -2). The option -r is synonyms for -root in an ef-
fort to be backward compatible with older export file formats.
-ro specifies that the file system should be exported Read-only (default
Read/Write). The option -o is synonyms for -ro in an effort to be back-
ward compatible with older export file formats.
For example:
/usr -root=0 rickers snowhite.cis.uoguelph.ca
/usr/local 131.104.48.16
/u -root=5
/u2 -ro
Given that /usr, /u and /u2 are local file system mount points, the above
example specifies the following:
/usr is exported to hosts rickers and snowhite.cis.uoguelph.ca with
root mapped to root.
/usr/local is exported to host 131.104.48.16 with root mapped to
root.
/u is exported to all hosts with root mapped to uid 5.
/u2 is exported to all hosts Read-only with root mapped to -2.
Note that ``/usr/local -root=5'' would have been incorrect, since /usr
and /usr/local reside in the same local file system.
FILES
/etc/exports The remote mount point file exports resides in /etc.
SEE ALSO
mountd(8), nfsd(8), showmount(8)
BUGS
It would be nice if the export options were not tied to local mount
points.
HISTORY
The exports file format is currently under development.
BSDI BSD/386 March 27, 1993 1