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