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. 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: src/sbin/mountd/mountd.8,v 1.16.2.2 2000/12/08 14:04:02 ru Exp $ 30.\" $DragonFly: src/sbin/mountd/mountd.8,v 1.5 2008/05/09 20:31:04 swildner Exp $ 31.\" 32.Dd April 28, 1995 33.Dt MOUNTD 8 34.Os 35.Sh NAME 36.Nm mountd 37.Nd service remote 38.Tn NFS 39mount requests 40.Sh SYNOPSIS 41.Nm 42.Op Fl 2dlnr 43.Op Ar exportsfile 44.Sh DESCRIPTION 45.Nm Mountd 46is the server for 47.Tn NFS 48mount requests from other client machines. 49It listens for service requests at the port indicated in the 50.Tn NFS 51server specification; see 52.%T "Network File System Protocol Specification" , 53RFC 1094, Appendix A and 54.%T "NFS: Network File System Version 3 Protocol Specification" , 55Appendix I. 56.Pp 57The following options are available: 58.Bl -tag -width indent 59.It Fl 2 60Allow the administrator to force clients to use only the 61version 2 62.Tn NFS 63protocol to mount filesystems from this server. 64.It Fl d 65Output debugging information. 66.It Fl l 67Cause all succeeded 68.Nm 69requests to be logged. 70.It Fl n 71Allow non-root mount requests to be served. 72This should only be specified if there are clients such as PC's, 73that require it. 74It will automatically clear the 75.Va vfs.nfs.nfs_privport 76sysctl flag, which 77controls if the kernel will accept NFS requests from reserved ports only. 78.It Fl r 79Allow mount RPCs requests for regular files to be served. 80Although this seems to violate the mount protocol specification, 81some diskless workstations do mount requests for 82their swapfiles and expect them to be regular files. 83Since a regular file cannot be specified in 84.Pa /etc/exports , 85the entire file system in which the swapfiles resides 86will have to be exported with the 87.Fl alldirs 88flag. 89.It Ar exportsfile 90Specify an alternate location 91for the exports file. 92.El 93.Pp 94When 95.Nm 96is started, 97it loads the export host addresses and options into the kernel 98using the 99.Xr mount 2 100system call. 101After changing the exports file, 102a hangup signal should be sent to the 103.Nm 104daemon 105to get it to reload the export information. 106After sending the 107.Dv SIGHUP 108(kill \-s HUP `cat /var/run/mountd.pid`), 109check the syslog output to see if 110.Nm 111logged any parsing 112errors in the exports file. 113.Pp 114If 115.Nm 116detects that the running kernel does not include 117.Tn NFS 118support, it will attempt to load a loadable kernel module containing 119.Tn NFS 120code, using 121.Xr kldload 8 122by way of 123.Xr vfsload 3 . 124If this fails, or no 125.Tn NFS 126KLD was available, 127.Nm 128exits with an error. 129.Sh FILES 130.Bl -tag -width /var/run/mountd.pid -compact 131.It Pa /etc/exports 132the list of exported filesystems 133.It Pa /var/run/mountd.pid 134the pid of the currently running mountd 135.It Pa /var/db/mountdtab 136the current list of remote mounted filesystems 137.El 138.Sh SEE ALSO 139.Xr nfsstat 1 , 140.Xr exports 5 , 141.Xr kldload 8 , 142.Xr nfsd 8 , 143.Xr rpcbind 8 , 144.Xr showmount 8 145.Sh HISTORY 146The 147.Nm 148utility first appeared in 149.Bx 4.4 . 150