xref: /freebsd/usr.sbin/mountd/mountd.8 (revision c0b0bcf4d39fe41ec1317d807a407284b7774f59)
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.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"     From: @(#)mountd.8	8.1 (Berkeley) 6/9/93
33.\"	$Id: mountd.8,v 1.4 1995/06/27 11:06:18 dfr Exp $
34.\"
35.Dd September 22, 1994
36.Dt MOUNTD 8
37.Os
38.Sh NAME
39.Nm mountd
40.Nd service remote
41.Tn NFS
42mount requests
43.Sh SYNOPSIS
44.Nm /sbin/mountd
45.Op Fl nr
46.Op Ar exportsfile
47.Sh DESCRIPTION
48.Xr Mountd
49is the server for
50.Tn NFS
51mount requests from other client machines.
52.Xr Mountd
53listens for service requests at the port indicated in the
54.Tn NFS
55server specification; see
56.%T "Network File System Protocol Specification" ,
57RFC1094, Appendix A and
58.%T "NFS: Network File System Version 3 Protocol Specification" ,
59Appendix I.
60.Pp
61Options and operands available for
62.Nm mountd :
63.Bl -tag -width Ds
64.It Fl n
65The
66.Fl n
67option allows non-root mount requests to be served.
68This should only be specified if there are clients such as PC's,
69that require it.
70.It Fl r
71The
72.Fl r
73option allows mount RPCs requests for regular files to be served.
74Although this seems to violate the mount protocol specification, some diskless
75workstations do mount requests for their swapfiles and expect them to be
76regular files. Since a regular file cannot be specified in /etc/exports, the
77entire file system that the swapfiles reside in will have to be exported with
78the ``-alldirs'' flag.
79.It Ar exportsfile
80The
81.Ar exportsfile
82argument specifies an alternate location
83for the exports file.
84.El
85.Pp
86When mountd is started,
87it loads the export host addresses and options into the kernel
88using the mount(2) system call.
89After changing the exports file,
90a hangup signal should be sent to the mountd daemon
91to get it to reload the export information.
92After sending the SIGHUP
93(kill -HUP `cat /var/run/mountd.pid`),
94check the syslog output to see if mountd logged any parsing
95errors in the exports file.
96.Pp
97If
98.Nm mountd
99detects that the running kernel does not include
100.Tn NFS
101support, it will attempt to load a loadable kernel module containing
102.Tn NFS
103code, using
104.Xr modload 8
105by way of
106.Xr vfsload 3 .
107If this fails, or no
108.Tn NFS
109LKM was available,
110.Nm mountd
111exits with an error.
112.Sh FILES
113.Bl -tag -width /var/run/mountd.pid -compact
114.It Pa /etc/exports
115the list of exported filesystems
116.It Pa /var/run/mountd.pid
117the pid of the currently running mountd
118.It Pa /var/db/mountdtab
119the current list of remote mounted filesystems
120.El
121.Sh SEE ALSO
122.Xr nfsstat 1 ,
123.Xr exports 5 ,
124.Xr modload 8 ,
125.Xr nfsd 8 ,
126.Xr portmap 8 ,
127.Xr showmount 8
128.Sh HISTORY
129The
130.Nm mountd
131utility first appeared in
132.Bx 4.4 .
133