]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/mountd/mountd.8
This commit was generated by cvs2svn to compensate for changes in r168463,
[FreeBSD/FreeBSD.git] / usr.sbin / mountd / mountd.8
1 .\" Copyright (c) 1989, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)mountd.8    8.4 (Berkeley) 4/28/95
29 .\" $FreeBSD$
30 .\"
31 .Dd February 3, 2007
32 .Dt MOUNTD 8
33 .Os
34 .Sh NAME
35 .Nm mountd
36 .Nd service remote
37 .Tn NFS
38 mount requests
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl 2dlnr
42 .Op Fl p Ar port
43 .Op Ar exportsfile ...
44 .Sh DESCRIPTION
45 The
46 .Nm
47 utility is the server for
48 .Tn NFS
49 mount requests from other client machines.
50 It listens for service requests at the port indicated in the
51 .Tn NFS
52 server specification; see
53 .%T "Network File System Protocol Specification" ,
54 RFC1094, Appendix A and
55 .%T "NFS: Network File System Version 3 Protocol Specification" ,
56 Appendix I.
57 .Pp
58 The following options are available:
59 .Bl -tag -width indent
60 .It Fl 2
61 Allow the administrator to force clients to use only the
62 version 2
63 .Tn NFS
64 protocol to mount file systems from this server.
65 .It Fl d
66 Output debugging information.
67 .Nm
68 will not detach from the controlling terminal and will print
69 debugging messages to stderr.
70 .It Fl l
71 Cause all succeeded
72 .Nm
73 requests to be logged.
74 .It Fl n
75 Allow non-root mount requests to be served.
76 This should only be specified if there are clients such as PC's,
77 that require it.
78 It will automatically clear the vfs.nfsrv.nfs_privport sysctl flag, which
79 controls if the kernel will accept NFS requests from reserved ports only.
80 .It Fl p Ar port
81 Force
82 .Nm
83 to bind to the specified port, for both
84 .Dv AF_INET
85 and
86 .Dv AF_INET6
87 address families.
88 This is typically done to ensure that the port which
89 .Nm
90 binds to is a known quantity which can be used in firewall rulesets.
91 If
92 .Nm
93 cannot bind to this port, an appropriate error will be recorded in
94 the system log, and the daemon will then exit.
95 .It Fl r
96 Allow mount RPCs requests for regular files to be served.
97 Although this seems to violate the mount protocol specification,
98 some diskless workstations do mount requests for
99 their swapfiles and expect them to be regular files.
100 Since a regular file cannot be specified in
101 .Pa /etc/exports ,
102 the entire file system in which the swapfiles resides
103 will have to be exported with the
104 .Fl alldirs
105 flag.
106 .It Ar exportsfile
107 Specify an alternate location
108 for the exports file.
109 More than one exports file can be specified.
110 .El
111 .Pp
112 When
113 .Nm
114 is started,
115 it loads the export host addresses and options into the kernel
116 using the
117 .Xr mount 2
118 system call.
119 After changing the exports file,
120 a hangup signal should be sent to the
121 .Nm
122 daemon
123 to get it to reload the export information.
124 After sending the SIGHUP
125 (kill \-s HUP `cat /var/run/mountd.pid`),
126 check the syslog output to see if
127 .Nm
128 logged any parsing
129 errors in the exports file.
130 .Pp
131 If
132 .Nm
133 detects that the running kernel does not include
134 .Tn NFS
135 support, it will attempt to load a loadable kernel module containing
136 .Tn NFS
137 code, using
138 .Xr kldload 2 .
139 If this fails, or no
140 .Tn NFS
141 KLD was available,
142 .Nm
143 exits with an error.
144 .Sh FILES
145 .Bl -tag -width /var/run/mountd.pid -compact
146 .It Pa /etc/exports
147 the list of exported file systems
148 .It Pa /var/run/mountd.pid
149 the pid of the currently running mountd
150 .It Pa /var/db/mountdtab
151 the current list of remote mounted file systems
152 .El
153 .Sh SEE ALSO
154 .Xr nfsstat 1 ,
155 .Xr kldload 2 ,
156 .Xr exports 5 ,
157 .Xr nfsd 8 ,
158 .Xr rpcbind 8 ,
159 .Xr showmount 8
160 .Sh HISTORY
161 The
162 .Nm
163 utility first appeared in
164 .Bx 4.4 .