xref: /original-bsd/sbin/mountd/exports.5 (revision 9a765c18)
Copyright (c) 1989 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)exports.5 5.1 (Berkeley) 06/25/90

EXPORTS 5 ""
C 7
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 synonyms 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 synonyms 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), showmount (8)
BUGS
It would be nice if the export options were not tied to local mount points.