.\" Copyright (c) 1989, 1991 The Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)exports.5 5.2 (Berkeley) 5/10/91
.Nd define remote mount points for
specifies remote mount points for the
server specification; see
.%T "Network File System Protocol Specification \\*(tNRFC\\*(sP 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
.Em per local file system
If no specific hosts are specified,
the mount point is exported to all hosts.
The export options are as follows:
specifies how to map root's uid (default -2).
in an effort to be backward compatible with older export file formats.
specifies that the file system should be exported Read-only
in an effort to be backward compatible with older export file formats.
.Bd -literal -offset indent
/usr -root=0 rickers snowhite.cis.uoguelph.ca
local file system mount points, the above example specifies the following:
.Bd -filled -offset indent
.Em snowhite.cis.uoguelph.ca
with root mapped to root.
is exported to all hosts with root mapped to uid 5.
is exported to all hosts Read-only with root mapped to -2.
.Dq Li "/usr/local -root=5"
would have been incorrect,
reside in the same local file system.
.Bl -tag -width /etc/exports -compact
The remote mount point file
It would be nice if the export options were not tied to local mount points.