xref: /csrg-svn/sbin/mountd/mountd.8 (revision 69032)
162943Sbostic.\" Copyright (c) 1989, 1991, 1993
262943Sbostic.\"	The Regents of the University of California.  All rights reserved.
338462Smckusick.\"
443790Strent.\" %sccs.include.redist.man%
538462Smckusick.\"
6*69032Sbostic.\"     @(#)mountd.8	8.4 (Berkeley) 04/28/95
738462Smckusick.\"
847463Scael.Dd
947463Scael.Dt MOUNTD 8
1047463Scael.Os
1147463Scael.Sh NAME
1247463Scael.Nm mountd
1347463Scael.Nd service remote
1447463Scael.Tn NFS
1547463Scaelmount requests
1647463Scael.Sh SYNOPSIS
1747463Scael.Nm /sbin/mountd
1868643Smckusick.Op Fl nr
1947463Scael.Op Ar exportsfile
2047463Scael.Sh DESCRIPTION
2147463Scael.Xr Mountd
2238462Smckusickis the server for
2347463Scael.Tn NFS
2438462Smckusickmount requests from other client machines.
2547463Scael.Xr Mountd
2638462Smckusicklistens for service requests at the port indicated in the
2747463Scael.Tn NFS
2838462Smckusickserver specification; see
2947463Scael.%T "Network File System Protocol Specification" ,
3068643SmckusickRFC1094, Appendix A and
3168643Smckusick.%T "NFS: Network File System Version 3 Protocol Specification" ,
3268643SmckusickAppendix I.
3347463Scael.Pp
3447463ScaelOptions and operands available for
3547463Scael.Nm mountd :
3647463Scael.Bl -tag -width Ds
3747463Scael.It Fl n
3868643SmckusickThe
3968643Smckusick.Fl n
4068643Smckusickoption allows non-root mount requests to be served.
4168643SmckusickThis should only be specified if there are clients such as PC's,
4268643Smckusickthat require it.
4368643Smckusick.It Fl r
4468643SmckusickThe
4568643Smckusick.Fl r
4668643Smckusickoption allows mount RPCs requests for regular files to be served.
4768643SmckusickAlthough this seems to violate the mount protocol specification,
4868643Smckusicksome diskless workstations do mount requests for
4968643Smckusicktheir swapfiles and expect them to be regular files.
5068643SmckusickSince a regular file cannot be specified in
5168643Smckusick.Pa /etc/exports ,
5268643Smckusickthe entire file system in which the swapfiles resides
5368643Smckusickwill have to be exported with the
5468643Smckusick.Fl alldirs
5568643Smckusickflag.
5651649Smckusick.It Ar exportsfile
5747463ScaelThe
5847463Scael.Ar exportsfile
5947463Scaelargument specifies an alternate location
6044013Smckusickfor the exports file.
6147463Scael.El
6247463Scael.Pp
6351649SmckusickWhen mountd is started,
6451649Smckusickit loads the export host addresses and options into the kernel
6551649Smckusickusing the mount(2) system call.
6651649SmckusickAfter changing the exports file,
6751649Smckusicka hangup signal should be sent to the mountd daemon
6851649Smckusickto get it to reload the export information.
6951649SmckusickAfter sending the SIGHUP
70*69032Sbostic(kill \-s HUP `cat /var/run/mountd.pid`),
7151649Smckusickcheck the syslog output to see if mountd logged any parsing
7251649Smckusickerrors in the exports file.
7347463Scael.Sh FILES
7451649Smckusick.Bl -tag -width /var/run/mountd.pid -compact
7547463Scael.It Pa /etc/exports
7651649Smckusickthe list of exported filesystems
7751649Smckusick.It Pa /var/run/mountd.pid
7851649Smckusickthe pid of the currently running mountd
7947463Scael.El
8047463Scael.Sh SEE ALSO
8147463Scael.Xr nfsstat 1 ,
8247463Scael.Xr exports 5 ,
8347463Scael.Xr nfsd 8 ,
8447463Scael.Xr portmap 8 ,
8547463Scael.Xr showmount 8
8647463Scael.Sh HISTORY
8747463ScaelThe
8862942Sbostic.Nm mountd
8962942Sbosticutility first appeared in 4.4BSD.
90