xref: /illumos-gate/usr/src/man/man8/mountd.8 (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
1*bbf21555SRichard Lowe.\"
2*bbf21555SRichard Lowe.\" The contents of this file are subject to the terms of the
3*bbf21555SRichard Lowe.\" Common Development and Distribution License (the "License").
4*bbf21555SRichard Lowe.\" You may not use this file except in compliance with the License.
5*bbf21555SRichard Lowe.\"
6*bbf21555SRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7*bbf21555SRichard Lowe.\" or http://www.opensolaris.org/os/licensing.
8*bbf21555SRichard Lowe.\" See the License for the specific language governing permissions
9*bbf21555SRichard Lowe.\" and limitations under the License.
10*bbf21555SRichard Lowe.\"
11*bbf21555SRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each
12*bbf21555SRichard Lowe.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13*bbf21555SRichard Lowe.\" If applicable, add the following below this CDDL HEADER, with the
14*bbf21555SRichard Lowe.\" fields enclosed by brackets "[]" replaced with your own identifying
15*bbf21555SRichard Lowe.\" information: Portions Copyright [yyyy] [name of copyright owner]
16*bbf21555SRichard Lowe.\"
17*bbf21555SRichard Lowe.\"
18*bbf21555SRichard Lowe.\" Copyright 1989 AT&T
19*bbf21555SRichard Lowe.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
20*bbf21555SRichard Lowe.\" Copyright 2016 Nexenta Systems, Inc.
21*bbf21555SRichard Lowe.\"
22*bbf21555SRichard Lowe.Dd March 12, 2016
23*bbf21555SRichard Lowe.Dt MOUNTD 8
24*bbf21555SRichard Lowe.Os
25*bbf21555SRichard Lowe.Sh NAME
26*bbf21555SRichard Lowe.Nm mountd
27*bbf21555SRichard Lowe.Nd server for NFS mount requests and NFS access checks
28*bbf21555SRichard Lowe.Sh SYNOPSIS
29*bbf21555SRichard Lowe.Nm /usr/lib/nfs/mountd
30*bbf21555SRichard Lowe.Op Fl rv
31*bbf21555SRichard Lowe.Sh DESCRIPTION
32*bbf21555SRichard Lowe.Nm
33*bbf21555SRichard Loweis an RPC server that answers requests for NFS access information and file
34*bbf21555SRichard Lowesystem mount requests.
35*bbf21555SRichard LoweIt reads the file
36*bbf21555SRichard Lowe.Pa /etc/dfs/sharetab
37*bbf21555SRichard Loweto determine which file systems are available for mounting by which remote
38*bbf21555SRichard Lowemachines.
39*bbf21555SRichard LoweSee
40*bbf21555SRichard Lowe.Xr sharetab 5 .
41*bbf21555SRichard Lowe.Nm nfsd
42*bbf21555SRichard Lowerunning on the local server will contact
43*bbf21555SRichard Lowe.Nm
44*bbf21555SRichard Lowethe first time an NFS client tries to access the file system to determine
45*bbf21555SRichard Lowewhether the client should get read-write, read-only, or no access.
46*bbf21555SRichard LoweThis access can be dependent on the security mode used in the remoted procedure
47*bbf21555SRichard Lowecall from the client.
48*bbf21555SRichard LoweSee
49*bbf21555SRichard Lowe.Xr share_nfs 8 .
50*bbf21555SRichard Lowe.Pp
51*bbf21555SRichard LoweThe command also provides information as to what file systems are mounted by
52*bbf21555SRichard Lowewhich clients.
53*bbf21555SRichard LoweThis information can be printed using the
54*bbf21555SRichard Lowe.Xr showmount 8
55*bbf21555SRichard Lowecommand.
56*bbf21555SRichard Lowe.Pp
57*bbf21555SRichard LoweThe
58*bbf21555SRichard Lowe.Nm
59*bbf21555SRichard Lowedaemon is automatically invoked by
60*bbf21555SRichard Lowe.Xr share 8 .
61*bbf21555SRichard Lowe.Pp
62*bbf21555SRichard LoweOnly super user can run the mountd daemon.
63*bbf21555SRichard Lowe.Pp
64*bbf21555SRichard LoweSee
65*bbf21555SRichard Lowe.Xr nfs 5
66*bbf21555SRichard Lowefor available configuration properties for
67*bbf21555SRichard Lowe.Nm .
68*bbf21555SRichard Lowe.Ss Options
69*bbf21555SRichard LoweThe options shown below are supported for NFSv2/v3 clients.
70*bbf21555SRichard LoweThey are not supported for NFSv4 clients.
71*bbf21555SRichard Lowe.Bl -tag -width Ds
72*bbf21555SRichard Lowe.It Fl r
73*bbf21555SRichard LoweReject mount requests from clients.
74*bbf21555SRichard LoweClients that have file systems mounted will not be affected.
75*bbf21555SRichard Lowe.It Fl v
76*bbf21555SRichard LoweRun the command in verbose mode.
77*bbf21555SRichard LoweEach time
78*bbf21555SRichard Lowe.Nm
79*bbf21555SRichard Lowedetermines what access a client should get, it will log the result to the
80*bbf21555SRichard Loweconsole, as well as how it got that result.
81*bbf21555SRichard Lowe.El
82*bbf21555SRichard Lowe.Sh FILES
83*bbf21555SRichard Lowe.Bl -tag -width Ds
84*bbf21555SRichard Lowe.It Pa /etc/dfs/sharetab
85*bbf21555SRichard Loweshared file system table
86*bbf21555SRichard Lowe.El
87*bbf21555SRichard Lowe.Sh SEE ALSO
88*bbf21555SRichard Lowe.Xr nfs 5 ,
89*bbf21555SRichard Lowe.Xr sharetab 5 ,
90*bbf21555SRichard Lowe.Xr attributes 7 ,
91*bbf21555SRichard Lowe.Xr nfsd 8 ,
92*bbf21555SRichard Lowe.Xr share 8 ,
93*bbf21555SRichard Lowe.Xr share_nfs 8 ,
94*bbf21555SRichard Lowe.Xr sharectl 8 ,
95*bbf21555SRichard Lowe.Xr showmount 8
96*bbf21555SRichard Lowe.Sh NOTES
97*bbf21555SRichard LoweSince
98*bbf21555SRichard Lowe.Nm
99*bbf21555SRichard Lowemust be running for
100*bbf21555SRichard Lowe.Nm nfsd
101*bbf21555SRichard Loweto function properly,
102*bbf21555SRichard Lowe.Nm
103*bbf21555SRichard Loweis automatically started by the
104*bbf21555SRichard Lowe.Sy svc:/network/nfs/server
105*bbf21555SRichard Loweservice.
106*bbf21555SRichard LoweSee
107*bbf21555SRichard Lowe.Xr nfs 5 .
108*bbf21555SRichard Lowe.Pp
109*bbf21555SRichard LoweSome routines that compare hostnames use case-sensitive string comparisons;
110*bbf21555SRichard Lowesome do not.
111*bbf21555SRichard LoweIf an incoming request fails, verify that the case of the hostname in the file
112*bbf21555SRichard Loweto be parsed matches the case of the hostname called for, and attempt the
113*bbf21555SRichard Lowerequest again.
114