Sync usage with man page.
[netbsd-mini2440.git] / usr.sbin / mountd / mountd.8
blobe161c7df2238c972bc0de939d5d086c1d7875708
1 .\"     $NetBSD: mountd.8,v 1.31 2005/09/23 12:10:35 jmmv Exp $
2 .\"
3 .\" Copyright (c) 1989, 1991, 1993
4 .\"     The Regents of the University of California.  All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\"    may be used to endorse or promote products derived from this software
16 .\"    without specific prior written permission.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" SUCH DAMAGE.
29 .\"
30 .\"     @(#)mountd.8    8.4 (Berkeley) 4/28/95
31 .\"
32 .Dd January 5, 2006
33 .Dt MOUNTD 8
34 .Os
35 .Sh NAME
36 .Nm mountd
37 .Nd service remote
38 .Tn NFS
39 mount requests
40 .Sh SYNOPSIS
41 .Nm
42 .Op Fl dNn
43 .Op Fl P Ar policy
44 .Op Fl p Ar port
45 .Op Ar exportsfile
46 .Sh DESCRIPTION
47 .Nm
48 is the server for
49 .Tn NFS
50 mount requests from other client machines.
51 .Nm
52 listens for service requests at the port indicated in the
53 .Tn NFS
54 server specification; see
55 .%T "Network File System Protocol Specification" ,
56 RFC 1094, Appendix A and
57 .%T "NFS: Network File System Version 3 Protocol Specification" ,
58 Appendix I.
59 .Pp
60 Options and operands available for
61 .Nm mountd :
62 .Bl -tag -width Ds
63 .It Fl d
64 Enable debugging mode.
65 .Nm
66 will not detach from the controlling terminal and will print
67 debugging messages to stderr.
68 .It Fl N
69 Do not require privileged ports for mount or NFS RPC calls.
70 This option is equivalent to specifying
71 .Dq -noresvport -noresvmnt
72 on every export.
73 See
74 .Xr exports 5
75 for more information.
76 .It Fl n
77 This flag used to indicate that clients were required to make requests
78 from reserved ports, but it is now no longer functional. It
79 is only provided for backwards compatibility. Requests
80 are checked for reserved ports on a per-export basis, see
81 .Xr exports 5 .
82 .It Fl P Ar policy
83 IPsec
84 .Ar policy
85 string,
86 as described in
87 .Xr ipsec_set_policy 3 .
88 Multiple IPsec policy strings may be specified by using a semicolon as
89 a separator. If conflicting policy strings are found in a single line,
90 the last string will take effect. If an invalid IPsec policy string is used
91 .Nm
92 logs an error message and terminates itself.
93 .It Fl p Ar port
94 Force
95 .Nm
96 to bind to the given port. If this
97 option is not given,
98 .Nm
99 may bind to every anonymous port
100 (in the range 600-1023) which causes trouble when trying to use
101 NFS through a firewall.
102 .It Ar exportsfile
104 .Ar exportsfile
105 argument specifies an alternative location
106 for the exports file.
109 When
111 is started,
112 it loads the export host addresses and options into the kernel
113 using the
114 .Xr nfssvc 2
115 system call.
116 After changing the exports file,
117 a hangup signal should be sent to the
119 daemon to get it to reload the export information.
120 After sending the SIGHUP
121 (kill \-s HUP `cat /var/run/mountd.pid`),
122 check the syslog output to see if
124 logged any parsing errors in the exports file.
126 After receiving SIGTERM,
128 sends a broadcast request to remove the mount list from all the clients.
129 This can take a long time, since the broadcast request waits for each
130 client to respond.
131 .Sh FILES
132 .Bl -tag -width /var/run/mountd.pid -compact
133 .It Pa /etc/exports
134 the list of exported filesystems
135 .It Pa /var/run/mountd.pid
136 the pid of the currently running
138 .It Pa /var/db/mountdtab
139 the list of remotely mounted filesystems
141 .Sh SEE ALSO
142 .Xr nfsstat 1 ,
143 .Xr nfssvc 2 ,
144 .Xr exports 5 ,
145 .Xr nfsd 8 ,
146 .Xr rpcbind 8 ,
147 .Xr showmount 8
148 .Sh HISTORY
151 utility first appeared in
152 .Bx 4.4 .