xref: /openbsd/sbin/mountd/mountd.8 (revision d89ec533)
1.\"	$OpenBSD: mountd.8,v 1.20 2015/12/15 18:24:18 tim Exp $
2.\"	$NetBSD: mountd.8,v 1.11 1996/02/18 11:57:51 fvdl Exp $
3.\"
4.\" Copyright (c) 1989, 1991, 1993
5.\"	The Regents of the University of California.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. Neither the name of the University nor the names of its contributors
16.\"    may be used to endorse or promote products derived from this software
17.\"    without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\"     @(#)mountd.8	8.4 (Berkeley) 4/28/95
32.\"
33.Dd $Mdocdate: December 15 2015 $
34.Dt MOUNTD 8
35.Os
36.Sh NAME
37.Nm mountd
38.Nd service remote NFS mount requests
39.Sh SYNOPSIS
40.Nm mountd
41.Op Fl d
42.Op Ar exportsfile
43.Sh DESCRIPTION
44.Nm
45is the server for NFS mount requests from other client machines.
46.Nm
47listens for service requests at the port indicated in the NFS
48server specification; see
49.%T "Network File System Protocol Specification" ,
50RFC 1094, Appendix A and
51.%T "NFS: Network File System Version 3 Protocol Specification" ,
52RFC 1813, Appendix I.
53.Pp
54The options are as follows:
55.Bl -tag -width Ds
56.It Fl d
57Enable debugging mode.
58.Nm
59will not detach from the controlling terminal and will print
60debugging messages to stderr.
61.It Ar exportsfile
62The
63.Ar exportsfile
64argument specifies an alternate location
65for the exports file.
66.El
67.Pp
68When
69.Nm
70is started,
71it loads the export host addresses and options into the kernel
72using the
73.Xr mount 2
74system call.
75After changing the exports file,
76a hangup signal should be sent to the
77.Nm
78daemon
79to get it to reload the export information.
80After sending the
81.Dv SIGHUP
82(kill \-HUP `cat /var/run/mountd.pid`),
83check the syslog output to see if
84.Nm
85logged any parsing
86errors in the exports file.
87.Sh FILES
88.Bl -tag -width /var/run/mountd.pid -compact
89.It Pa /etc/exports
90list of exported filesystems
91.It Pa /var/db/mountdtab
92list of exported filesystems currently mounted
93.It Pa /var/run/mountd.pid
94PID of the currently running
95.Nm
96.El
97.Sh SEE ALSO
98.Xr nfsstat 1 ,
99.Xr exports 5 ,
100.Xr nfsd 8 ,
101.Xr portmap 8 ,
102.Xr showmount 8
103.Sh HISTORY
104The
105.Nm
106utility first appeared in
107.Bx 4.4 .
108.Pp
109The
110.Fl n
111flag historically allowed clients to use non-reserved ports
112when communicating with
113.Nm .
114In
115.Ox ,
116a reserved port is always used.
117