4.3BSD-Reno/src/sbin/mountd/exports.5

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1989 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted provided
.\" that: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"	@(#)exports.5	5.1 (Berkeley) 6/25/90
.\"
.TH EXPORTS 5 "June 25, 1990"
.UC 7
.SH NAME
exports \- define remote mount points for NFS mount requests
.SH SYNOPSIS
.B /etc/exports
.SH DESCRIPTION
.I Exports
specifies remote mount points for the
.SM NFS
mount protocol per the
.SM NFS
server specification; see
``Network File System Protocol Specification, RFC1094''.
.LP
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 \fIper local file system\fR basis.
If no specific hosts are specified,
the mount point is exported to all hosts.
.LP
The export options are as follows:
.B \-root=<uid>
specifies how to map root's uid (default -2).
The option \fB\-r\fR is synonyms for \fB\-root\fP
in an effort to be backward compatible with older export file formats.
.sp
.B \-ro
specifies that the file system should be exported Read-only
(default Read/Write).
The option \fB-o\fR is synonyms for \fB\-ro\fP
in an effort to be backward compatible with older export file formats.
.LP
For example:
.RS
/usr -root=0 rickers snowhite.cis.uoguelph.ca
.br
/usr/local 131.104.48.16
.br
/u -root=5
.br
/u2 -ro
.RE
.sp
given that \fB/usr\fR, \fB/u\fR and \fB/u2\fR are
local file system mount points, specifies the following:
.RS
\fB/usr\fR
is exported to hosts \fIrickers\fR and \fIsnowhite.cis.uoguelph.ca\fR with
root mapped to root.
.br
\fB/usr/local\fR
is exported to host \fI131.104.48.16\fR with root mapped to root.
.br
\fB/u\fR
is exported to all hosts with root mapped to uid 5.
.br
\fB/u2\fR
is exported to all hosts Read-only with root mapped to -2.
.RE
.LP
Note that \fB/usr/local -root=5\fR would have been incorrect,
since \fB/usr\fR and \fB/usr/local\fR reside in the same local file system.
.SH FILES
/etc/exports
.SH SEE ALSO
.IR mountd (8),
.IR nfsd (8),
.IR showmount (8)
.SH BUGS
It would be nice if the export options were not tied to local mount points.