xref: /freebsd/usr.sbin/mountd/mountd.8 (revision a62dc4065454b3af8bde3af9f005db2c4d802fec)
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.\"
32d599144dSGarrett Wollman.\"     From: @(#)mountd.8	8.1 (Berkeley) 6/9/93
33a62dc406SDoug Rabson.\"	$Id: mountd.8,v 1.3 1995/02/22 21:42:48 ats Exp $
348fae3551SRodney W. Grimes.\"
35d599144dSGarrett Wollman.Dd September 22, 1994
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
448fae3551SRodney W. Grimes.Nm /sbin/mountd
45a62dc406SDoug Rabson.Op Fl nr
468fae3551SRodney W. Grimes.Op Ar exportsfile
478fae3551SRodney W. Grimes.Sh DESCRIPTION
488fae3551SRodney W. Grimes.Xr Mountd
498fae3551SRodney W. Grimesis the server for
508fae3551SRodney W. Grimes.Tn NFS
518fae3551SRodney W. Grimesmount requests from other client machines.
528fae3551SRodney W. Grimes.Xr Mountd
538fae3551SRodney W. Grimeslistens for service requests at the port indicated in the
548fae3551SRodney W. Grimes.Tn NFS
558fae3551SRodney W. Grimesserver specification; see
568fae3551SRodney W. Grimes.%T "Network File System Protocol Specification" ,
57a62dc406SDoug RabsonRFC1094, Appendix A and
58a62dc406SDoug Rabson.%T "NFS: Network File System Version 3 Protocol Specification" ,
59a62dc406SDoug RabsonAppendix I.
608fae3551SRodney W. Grimes.Pp
618fae3551SRodney W. GrimesOptions and operands available for
628fae3551SRodney W. Grimes.Nm mountd :
638fae3551SRodney W. Grimes.Bl -tag -width Ds
648fae3551SRodney W. Grimes.It Fl n
658fae3551SRodney W. GrimesThe
668fae3551SRodney W. Grimes.Fl n
678fae3551SRodney W. Grimesoption allows non-root mount requests to be served.
688fae3551SRodney W. GrimesThis should only be specified if there are clients such as PC's,
698fae3551SRodney W. Grimesthat require it.
70a62dc406SDoug Rabson.It Fl r
71a62dc406SDoug RabsonThe
72a62dc406SDoug Rabson.Fl r
73a62dc406SDoug Rabsonoption allows mount RPCs requests for regular files to be served.
74a62dc406SDoug RabsonAlthough this seems to violate the mount protocol specification, some diskless
75a62dc406SDoug Rabsonworkstations do mount requests for their swapfiles and expect them to be
76a62dc406SDoug Rabsonregular files. Since a regular file cannot be specified in /etc/exports, the
77a62dc406SDoug Rabsonentire file system that the swapfiles reside in will have to be exported with
78a62dc406SDoug Rabsonthe ``-alldirs'' flag.
798fae3551SRodney W. Grimes.It Ar exportsfile
808fae3551SRodney W. GrimesThe
818fae3551SRodney W. Grimes.Ar exportsfile
828fae3551SRodney W. Grimesargument specifies an alternate location
838fae3551SRodney W. Grimesfor the exports file.
848fae3551SRodney W. Grimes.El
858fae3551SRodney W. Grimes.Pp
868fae3551SRodney W. GrimesWhen mountd is started,
878fae3551SRodney W. Grimesit loads the export host addresses and options into the kernel
888fae3551SRodney W. Grimesusing the mount(2) system call.
898fae3551SRodney W. GrimesAfter changing the exports file,
908fae3551SRodney W. Grimesa hangup signal should be sent to the mountd daemon
918fae3551SRodney W. Grimesto get it to reload the export information.
928fae3551SRodney W. GrimesAfter sending the SIGHUP
938fae3551SRodney W. Grimes(kill -HUP `cat /var/run/mountd.pid`),
948fae3551SRodney W. Grimescheck the syslog output to see if mountd logged any parsing
958fae3551SRodney W. Grimeserrors in the exports file.
96d599144dSGarrett Wollman.Pp
97d599144dSGarrett WollmanIf
98d599144dSGarrett Wollman.Nm mountd
99d599144dSGarrett Wollmandetects that the running kernel does not include
100d599144dSGarrett Wollman.Tn NFS
101d599144dSGarrett Wollmansupport, it will attempt to load a loadable kernel module containing
102d599144dSGarrett Wollman.Tn NFS
103d599144dSGarrett Wollmancode, using
104d599144dSGarrett Wollman.Xr modload 8
105d599144dSGarrett Wollmanby way of
106d599144dSGarrett Wollman.Xr vfsload 3 .
107d599144dSGarrett WollmanIf this fails, or no
108d599144dSGarrett Wollman.Tn NFS
109d599144dSGarrett WollmanLKM was available,
110d599144dSGarrett Wollman.Nm mountd
111d599144dSGarrett Wollmanexits with an error.
1128fae3551SRodney W. Grimes.Sh FILES
1138fae3551SRodney W. Grimes.Bl -tag -width /var/run/mountd.pid -compact
1148fae3551SRodney W. Grimes.It Pa /etc/exports
1158fae3551SRodney W. Grimesthe list of exported filesystems
1168fae3551SRodney W. Grimes.It Pa /var/run/mountd.pid
1178fae3551SRodney W. Grimesthe pid of the currently running mountd
11808b48e64SAndreas Schulz.It Pa /var/db/mountdtab
11908b48e64SAndreas Schulzthe current list of remote mounted filesystems
1208fae3551SRodney W. Grimes.El
1218fae3551SRodney W. Grimes.Sh SEE ALSO
1228fae3551SRodney W. Grimes.Xr nfsstat 1 ,
1238fae3551SRodney W. Grimes.Xr exports 5 ,
124d599144dSGarrett Wollman.Xr modload 8 ,
1258fae3551SRodney W. Grimes.Xr nfsd 8 ,
1268fae3551SRodney W. Grimes.Xr portmap 8 ,
1278fae3551SRodney W. Grimes.Xr showmount 8
1288fae3551SRodney W. Grimes.Sh HISTORY
1298fae3551SRodney W. GrimesThe
1308fae3551SRodney W. Grimes.Nm mountd
1318fae3551SRodney W. Grimesutility first appeared in 4.4BSD.
132