1.\" $NetBSD: mountd.8,v 1.24 2002/09/25 00:09:38 wiz 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. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95 35.\" 36.Dd April 28, 1995 37.Dt MOUNTD 8 38.Os 39.Sh NAME 40.Nm mountd 41.Nd service remote 42.Tn NFS 43mount requests 44.Sh SYNOPSIS 45.Nm 46.Op Fl P Ar policy 47.Op Fl dn 48.Op Ar exportsfile 49.Sh DESCRIPTION 50.Nm 51is the server for 52.Tn NFS 53mount requests from other client machines. 54.Nm 55listens for service requests at the port indicated in the 56.Tn NFS 57server specification; see 58.%T "Network File System Protocol Specification" , 59RFC1094, Appendix A and 60.%T "NFS: Network File System Version 3 Protocol Specification" , 61Appendix I. 62.Pp 63Options and operands available for 64.Nm mountd : 65.Bl -tag -width Ds 66.It Fl P Ar policy 67IPsec 68.Ar policy 69string, 70as described in 71.Xr ipsec_set_policy 3 . 72Multiple IPsec policy strings may be specified by using a semicolon as 73a separator. If conflicting policy strings are found in a single line, 74the last string will take effect. If an invalid IPsec policy string is used 75.Nm 76logs an error message and terminates itself. 77.It Fl d 78Enable debugging mode. 79.Nm 80will not detach from the controlling terminal and will print 81debugging messages to stderr. 82.It Fl n 83This flag used to indicate that clients were required to make requests 84from reserved ports, but it is now no longer functional. It 85is only provided for backwards compatibility. Requests 86are checked for reserved ports on a per-export basis, see 87.Xr exports 5 . 88.It Ar exportsfile 89The 90.Ar exportsfile 91argument specifies an alternative location 92for the exports file. 93.El 94.Pp 95When 96.Nm 97is started, 98it loads the export host addresses and options into the kernel 99using the 100.Xr mount 2 101system call. 102After changing the exports file, 103a hangup signal should be sent to the 104.Nm 105daemon to get it to reload the export information. 106After sending the SIGHUP 107(kill \-s HUP `cat /var/run/mountd.pid`), 108check the syslog output to see if 109.Nm 110logged any parsing errors in the exports file. 111.Pp 112After receiving SIGTERM, 113.Nm 114sends a broadcast request to remove the mount list from all the clients. 115This can take a long time, since the broadcast request waits for each 116client to respond. 117.Sh FILES 118.Bl -tag -width /var/run/mountd.pid -compact 119.It Pa /etc/exports 120the list of exported filesystems 121.It Pa /var/run/mountd.pid 122the pid of the currently running 123.Nm 124.El 125.Sh SEE ALSO 126.Xr nfsstat 1 , 127.Xr exports 5 , 128.Xr nfsd 8 , 129.Xr rpcbind 8 , 130.Xr showmount 8 131.Sh HISTORY 132The 133.Nm 134utility first appeared in 135.Bx 4.4 . 136