xref: /original-bsd/sbin/mountd/mountd.8 (revision 0842ddeb)
1.\" Copyright (c) 1989, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)mountd.8	8.4 (Berkeley) 04/28/95
7.\"
8.Dd
9.Dt MOUNTD 8
10.Os
11.Sh NAME
12.Nm mountd
13.Nd service remote
14.Tn NFS
15mount requests
16.Sh SYNOPSIS
17.Nm /sbin/mountd
18.Op Fl nr
19.Op Ar exportsfile
20.Sh DESCRIPTION
21.Xr Mountd
22is the server for
23.Tn NFS
24mount requests from other client machines.
25.Xr Mountd
26listens for service requests at the port indicated in the
27.Tn NFS
28server specification; see
29.%T "Network File System Protocol Specification" ,
30RFC1094, Appendix A and
31.%T "NFS: Network File System Version 3 Protocol Specification" ,
32Appendix I.
33.Pp
34Options and operands available for
35.Nm mountd :
36.Bl -tag -width Ds
37.It Fl n
38The
39.Fl n
40option allows non-root mount requests to be served.
41This should only be specified if there are clients such as PC's,
42that require it.
43.It Fl r
44The
45.Fl r
46option allows mount RPCs requests for regular files to be served.
47Although this seems to violate the mount protocol specification,
48some diskless workstations do mount requests for
49their swapfiles and expect them to be regular files.
50Since a regular file cannot be specified in
51.Pa /etc/exports ,
52the entire file system in which the swapfiles resides
53will have to be exported with the
54.Fl alldirs
55flag.
56.It Ar exportsfile
57The
58.Ar exportsfile
59argument specifies an alternate location
60for the exports file.
61.El
62.Pp
63When mountd is started,
64it loads the export host addresses and options into the kernel
65using the mount(2) system call.
66After changing the exports file,
67a hangup signal should be sent to the mountd daemon
68to get it to reload the export information.
69After sending the SIGHUP
70(kill \-s HUP `cat /var/run/mountd.pid`),
71check the syslog output to see if mountd logged any parsing
72errors in the exports file.
73.Sh FILES
74.Bl -tag -width /var/run/mountd.pid -compact
75.It Pa /etc/exports
76the list of exported filesystems
77.It Pa /var/run/mountd.pid
78the pid of the currently running mountd
79.El
80.Sh SEE ALSO
81.Xr nfsstat 1 ,
82.Xr exports 5 ,
83.Xr nfsd 8 ,
84.Xr portmap 8 ,
85.Xr showmount 8
86.Sh HISTORY
87The
88.Nm mountd
89utility first appeared in 4.4BSD.
90