NAME
exports - define remote mount points for NFS mount
requests
SYNOPSIS
/etc/exports
DESCRIPTION
Exports specifies remote mount points for the NFS mount
protocol
per the NFS server specification; see "Network File
System
Protocol Specification, RFC1094".
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 specified, 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 synonymous
for -root in
an effort 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 synonymous for -ro in
an
effort to be backward 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,
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
SEE ALSO
mountd(8), nfsd(8)
BUGS
It would be nice if the export options were not tied to
local mount
points.