18fae3551SRodney W. Grimes.\" Copyright (c) 1989, 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 68fae3551SRodney W. Grimes.\" are met: 78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 88fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 108fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 118fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 128fae3551SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 138fae3551SRodney W. Grimes.\" must display the following acknowledgement: 148fae3551SRodney W. Grimes.\" This product includes software developed by the University of 158fae3551SRodney W. Grimes.\" California, Berkeley and its contributors. 168fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 178fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 188fae3551SRodney W. Grimes.\" without specific prior written permission. 198fae3551SRodney W. Grimes.\" 208fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 218fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 228fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 238fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 248fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 258fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 268fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 278fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 288fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 298fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 308fae3551SRodney W. Grimes.\" SUCH DAMAGE. 318fae3551SRodney W. Grimes.\" 3287564113SPeter Wemm.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95 337f3dea24SPeter Wemm.\" $FreeBSD$ 348fae3551SRodney W. Grimes.\" 3587564113SPeter Wemm.Dd April 28, 1995 368fae3551SRodney W. Grimes.Dt MOUNTD 8 378fae3551SRodney W. Grimes.Os 388fae3551SRodney W. Grimes.Sh NAME 398fae3551SRodney W. Grimes.Nm mountd 408fae3551SRodney W. Grimes.Nd service remote 418fae3551SRodney W. Grimes.Tn NFS 428fae3551SRodney W. Grimesmount requests 438fae3551SRodney W. Grimes.Sh SYNOPSIS 447c7fb079SRuslan Ermilov.Nm 4574853402SPhilippe Charnier.Op Fl 2dlnr 46c203da27SBruce M Simpson.Op Fl p Ar port 478fae3551SRodney W. Grimes.Op Ar exportsfile 488fae3551SRodney W. Grimes.Sh DESCRIPTION 49e1205e80SPhilippe CharnierThe 50e1205e80SPhilippe Charnier.Nm 51e1205e80SPhilippe Charnierutility is the server for 528fae3551SRodney W. Grimes.Tn NFS 538fae3551SRodney W. Grimesmount requests from other client machines. 5474853402SPhilippe CharnierIt listens for service requests at the port indicated in the 558fae3551SRodney W. Grimes.Tn NFS 568fae3551SRodney W. Grimesserver specification; see 578fae3551SRodney W. Grimes.%T "Network File System Protocol Specification" , 58a62dc406SDoug RabsonRFC1094, Appendix A and 59a62dc406SDoug Rabson.%T "NFS: Network File System Version 3 Protocol Specification" , 60a62dc406SDoug RabsonAppendix I. 618fae3551SRodney W. Grimes.Pp 6274853402SPhilippe CharnierThe following options are available: 6374853402SPhilippe Charnier.Bl -tag -width indent 642a66cfc5SDoug Rabson.It Fl 2 6574853402SPhilippe CharnierAllow the administrator to force clients to use only the 6674853402SPhilippe Charnierversion 2 6774853402SPhilippe Charnier.Tn NFS 6874853402SPhilippe Charnierprotocol to mount file systems from this server. 6974853402SPhilippe Charnier.It Fl d 7074853402SPhilippe CharnierOutput debugging information. 71690c488dSGuido van Rooij.It Fl l 7274853402SPhilippe CharnierCause all succeeded 7374853402SPhilippe Charnier.Nm 7474853402SPhilippe Charnierrequests to be logged. 758fae3551SRodney W. Grimes.It Fl n 7674853402SPhilippe CharnierAllow non-root mount requests to be served. 778fae3551SRodney W. GrimesThis should only be specified if there are clients such as PC's, 788fae3551SRodney W. Grimesthat require it. 79c8714748SDima DorfmanIt will automatically clear the vfs.nfsrv.nfs_privport sysctl flag, which 80099d4ed1SStephen McKaycontrols if the kernel will accept NFS requests from reserved ports only. 81c203da27SBruce M Simpson.It Fl p Ar port 82c203da27SBruce M SimpsonForce 83c203da27SBruce M Simpson.Nm 84c203da27SBruce M Simpsonto bind to the specified port, for both 85c203da27SBruce M Simpson.Vt AF_INET 86c203da27SBruce M Simpsonand 87c203da27SBruce M Simpson.Vt AF_INET6 88c203da27SBruce M Simpsonaddress families. 89c203da27SBruce M SimpsonThis is typically done to ensure that the port which 90c203da27SBruce M Simpson.Nm 91c203da27SBruce M Simpsonbinds to is a known quantity which can be used in firewall rulesets. 92c203da27SBruce M SimpsonIf 93c203da27SBruce M Simpson.Nm 94c203da27SBruce M Simpsoncannot bind to this port, an appropriate error will be recorded in 95c203da27SBruce M Simpsonthe system log, and the daemon will then exit. 96a62dc406SDoug Rabson.It Fl r 9774853402SPhilippe CharnierAllow mount RPCs requests for regular files to be served. 9887564113SPeter WemmAlthough this seems to violate the mount protocol specification, 9987564113SPeter Wemmsome diskless workstations do mount requests for 10087564113SPeter Wemmtheir swapfiles and expect them to be regular files. 10187564113SPeter WemmSince a regular file cannot be specified in 10287564113SPeter Wemm.Pa /etc/exports , 10387564113SPeter Wemmthe entire file system in which the swapfiles resides 10487564113SPeter Wemmwill have to be exported with the 10587564113SPeter Wemm.Fl alldirs 10687564113SPeter Wemmflag. 1078fae3551SRodney W. Grimes.It Ar exportsfile 10874853402SPhilippe CharnierSpecify an alternate location 1098fae3551SRodney W. Grimesfor the exports file. 1108fae3551SRodney W. Grimes.El 1118fae3551SRodney W. Grimes.Pp 11274853402SPhilippe CharnierWhen 11374853402SPhilippe Charnier.Nm 11474853402SPhilippe Charnieris started, 1158fae3551SRodney W. Grimesit loads the export host addresses and options into the kernel 116fe27ded8SMike Pritchardusing the 117fe27ded8SMike Pritchard.Xr mount 2 118fe27ded8SMike Pritchardsystem call. 1198fae3551SRodney W. GrimesAfter changing the exports file, 12074853402SPhilippe Charniera hangup signal should be sent to the 12174853402SPhilippe Charnier.Nm 12274853402SPhilippe Charnierdaemon 1238fae3551SRodney W. Grimesto get it to reload the export information. 1248fae3551SRodney W. GrimesAfter sending the SIGHUP 12587564113SPeter Wemm(kill \-s HUP `cat /var/run/mountd.pid`), 12674853402SPhilippe Charniercheck the syslog output to see if 12774853402SPhilippe Charnier.Nm 12874853402SPhilippe Charnierlogged any parsing 1298fae3551SRodney W. Grimeserrors in the exports file. 130d599144dSGarrett Wollman.Pp 131d599144dSGarrett WollmanIf 13274853402SPhilippe Charnier.Nm 133d599144dSGarrett Wollmandetects that the running kernel does not include 134d599144dSGarrett Wollman.Tn NFS 135d599144dSGarrett Wollmansupport, it will attempt to load a loadable kernel module containing 136d599144dSGarrett Wollman.Tn NFS 137d599144dSGarrett Wollmancode, using 138933abef0SMaxime Henrion.Xr kldload 2 . 139d599144dSGarrett WollmanIf this fails, or no 140d599144dSGarrett Wollman.Tn NFS 1415e0abc7bSGuy HelmerKLD was available, 14274853402SPhilippe Charnier.Nm 143d599144dSGarrett Wollmanexits with an error. 1448fae3551SRodney W. Grimes.Sh FILES 1458fae3551SRodney W. Grimes.Bl -tag -width /var/run/mountd.pid -compact 1468fae3551SRodney W. Grimes.It Pa /etc/exports 1478fae3551SRodney W. Grimesthe list of exported file systems 1488fae3551SRodney W. Grimes.It Pa /var/run/mountd.pid 1498fae3551SRodney W. Grimesthe pid of the currently running mountd 15008b48e64SAndreas Schulz.It Pa /var/db/mountdtab 15108b48e64SAndreas Schulzthe current list of remote mounted file systems 1528fae3551SRodney W. Grimes.El 1538fae3551SRodney W. Grimes.Sh SEE ALSO 1548fae3551SRodney W. Grimes.Xr nfsstat 1 , 155933abef0SMaxime Henrion.Xr kldload 2 , 1568fae3551SRodney W. Grimes.Xr exports 5 , 1578fae3551SRodney W. Grimes.Xr nfsd 8 , 1588657581bSMaxim Sobolev.Xr rpcbind 8 , 1598fae3551SRodney W. Grimes.Xr showmount 8 1608fae3551SRodney W. Grimes.Sh HISTORY 1618fae3551SRodney W. GrimesThe 16274853402SPhilippe Charnier.Nm 163c0b0bcf4SMike Pritchardutility first appeared in 164c0b0bcf4SMike Pritchard.Bx 4.4 . 165