BSD 4_3_Reno development
[unix-history] / usr / share / man / cat5 / exports.0
EXPORTS(5) 1990 EXPORTS(5)
N\bNA\bAM\bME\bE
exports - define remote mount points for NFS mount requests
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
/\b/e\bet\btc\bc/\b/e\bex\bxp\bpo\bor\brt\bts\bs
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bE_\bx_\bp_\bo_\br_\bt_\bs specifies remote mount points for the NFS mount pro-
tocol 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 han-
dled on a _\bp_\be_\br _\bl_\bo_\bc_\ba_\bl _\bf_\bi_\bl_\be _\bs_\by_\bs_\bt_\be_\bm basis. If no specific hosts
are specified, the mount point is exported to all hosts.
The export options are as follows: -\b-r\bro\boo\bot\bt=\b=<\b<u\bui\bid\bd>\b> specifies how
to map root's uid (default -2). The option -\b-r\br is synonyms
for -\b-r\bro\boo\bot\bt in an effort to be backward compatible with older
export file formats.
-\b-r\bro\bo specifies that the file system should be exported Read-
only (default Read/Write). The option -\b-o\bo is synonyms for
-\b-r\bro\bo 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 /\b/u\bus\bsr\br, /\b/u\bu and /\b/u\bu2\b2 are local file system mount
points, specifies the following:
/\b/u\bus\bsr\br is exported to hosts _\br_\bi_\bc_\bk_\be_\br_\bs and
_\bs_\bn_\bo_\bw_\bh_\bi_\bt_\be._\bc_\bi_\bs._\bu_\bo_\bg_\bu_\be_\bl_\bp_\bh._\bc_\ba with root mapped to root.
/\b/u\bus\bsr\br/\b/l\blo\boc\bca\bal\bl is exported to host _\b1_\b3_\b1._\b1_\b0_\b4._\b4_\b8._\b1_\b6 with root
mapped to root.
/\b/u\bu is exported to all hosts with root mapped to uid 5.
/\b/u\bu2\b2 is exported to all hosts Read-only with root mapped
to -2.
Note that /\b/u\bus\bsr\br/\b/l\blo\boc\bca\bal\bl -\b-r\bro\boo\bot\bt=\b=5\b5 would have been incorrect,
since /\b/u\bus\bsr\br and /\b/u\bus\bsr\br/\b/l\blo\boc\bca\bal\bl reside in the same local file sys-
tem.
F\bFI\bIL\bLE\bES\bS
/etc/exports
Printed 7/27/90 June 1
EXPORTS(5) 1990 EXPORTS(5)
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
_\bm_\bo_\bu_\bn_\bt_\bd(8), _\bn_\bf_\bs_\bd(8), _\bs_\bh_\bo_\bw_\bm_\bo_\bu_\bn_\bt(8)
B\bBU\bUG\bGS\bS
It would be nice if the export options were not tied to
local mount points.
Printed 7/27/90 June 2