1c7709595SYuri Pankov.\" 2c7709595SYuri Pankov.\" The contents of this file are subject to the terms of the 3c7709595SYuri Pankov.\" Common Development and Distribution License (the "License"). 4c7709595SYuri Pankov.\" You may not use this file except in compliance with the License. 5c7709595SYuri Pankov.\" 6c7709595SYuri Pankov.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 7c7709595SYuri Pankov.\" or http://www.opensolaris.org/os/licensing. 8c7709595SYuri Pankov.\" See the License for the specific language governing permissions 9c7709595SYuri Pankov.\" and limitations under the License. 10c7709595SYuri Pankov.\" 11c7709595SYuri Pankov.\" When distributing Covered Code, include this CDDL HEADER in each 12c7709595SYuri Pankov.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 13c7709595SYuri Pankov.\" If applicable, add the following below this CDDL HEADER, with the 14c7709595SYuri Pankov.\" fields enclosed by brackets "[]" replaced with your own identifying 15c7709595SYuri Pankov.\" information: Portions Copyright [yyyy] [name of copyright owner] 16c7709595SYuri Pankov.\" 17c7709595SYuri Pankov.\" 18c7709595SYuri Pankov.\" Copyright 1989 AT&T 19c7709595SYuri Pankov.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved 20c7709595SYuri Pankov.\" Copyright 2016 Nexenta Systems, Inc. 21c7709595SYuri Pankov.\" 22c7709595SYuri Pankov.Dd March 12, 2016 23*bbf21555SRichard Lowe.Dt MOUNTD 8 24c7709595SYuri Pankov.Os 25c7709595SYuri Pankov.Sh NAME 26c7709595SYuri Pankov.Nm mountd 27c7709595SYuri Pankov.Nd server for NFS mount requests and NFS access checks 28c7709595SYuri Pankov.Sh SYNOPSIS 29c7709595SYuri Pankov.Nm /usr/lib/nfs/mountd 30c7709595SYuri Pankov.Op Fl rv 31c7709595SYuri Pankov.Sh DESCRIPTION 32c7709595SYuri Pankov.Nm 33c7709595SYuri Pankovis an RPC server that answers requests for NFS access information and file 3472d3dbb9SYuri Pankovsystem mount requests. 3572d3dbb9SYuri PankovIt reads the file 36c7709595SYuri Pankov.Pa /etc/dfs/sharetab 37c7709595SYuri Pankovto determine which file systems are available for mounting by which remote 3872d3dbb9SYuri Pankovmachines. 3972d3dbb9SYuri PankovSee 40*bbf21555SRichard Lowe.Xr sharetab 5 . 41c7709595SYuri Pankov.Nm nfsd 42c7709595SYuri Pankovrunning on the local server will contact 43c7709595SYuri Pankov.Nm 44c7709595SYuri Pankovthe first time an NFS client tries to access the file system to determine 4572d3dbb9SYuri Pankovwhether the client should get read-write, read-only, or no access. 4672d3dbb9SYuri PankovThis access can be dependent on the security mode used in the remoted procedure 4772d3dbb9SYuri Pankovcall from the client. 4872d3dbb9SYuri PankovSee 49*bbf21555SRichard Lowe.Xr share_nfs 8 . 50c7709595SYuri Pankov.Pp 51c10c16deSRichard LoweThe command also provides information as to what file systems are mounted by 5272d3dbb9SYuri Pankovwhich clients. 5372d3dbb9SYuri PankovThis information can be printed using the 54*bbf21555SRichard Lowe.Xr showmount 8 55c10c16deSRichard Lowecommand. 56c7709595SYuri Pankov.Pp 57c7709595SYuri PankovThe 58c7709595SYuri Pankov.Nm 59c7709595SYuri Pankovdaemon is automatically invoked by 60*bbf21555SRichard Lowe.Xr share 8 . 61c7709595SYuri Pankov.Pp 62c7709595SYuri PankovOnly super user can run the mountd daemon. 63c7709595SYuri Pankov.Pp 64c7709595SYuri PankovSee 65*bbf21555SRichard Lowe.Xr nfs 5 66c7709595SYuri Pankovfor available configuration properties for 67c7709595SYuri Pankov.Nm . 68c7709595SYuri Pankov.Ss Options 6972d3dbb9SYuri PankovThe options shown below are supported for NFSv2/v3 clients. 7072d3dbb9SYuri PankovThey are not supported for NFSv4 clients. 71c7709595SYuri Pankov.Bl -tag -width Ds 72c7709595SYuri Pankov.It Fl r 7372d3dbb9SYuri PankovReject mount requests from clients. 7472d3dbb9SYuri PankovClients that have file systems mounted will not be affected. 75c7709595SYuri Pankov.It Fl v 7672d3dbb9SYuri PankovRun the command in verbose mode. 7772d3dbb9SYuri PankovEach time 78c7709595SYuri Pankov.Nm 79c7709595SYuri Pankovdetermines what access a client should get, it will log the result to the 80c7709595SYuri Pankovconsole, as well as how it got that result. 81c7709595SYuri Pankov.El 82c7709595SYuri Pankov.Sh FILES 83c7709595SYuri Pankov.Bl -tag -width Ds 84c7709595SYuri Pankov.It Pa /etc/dfs/sharetab 85c10c16deSRichard Loweshared file system table 86c7709595SYuri Pankov.El 87c7709595SYuri Pankov.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 96c7709595SYuri Pankov.Sh NOTES 97c7709595SYuri PankovSince 98c7709595SYuri Pankov.Nm 99c7709595SYuri Pankovmust be running for 100c7709595SYuri Pankov.Nm nfsd 101c7709595SYuri Pankovto function properly, 102c7709595SYuri Pankov.Nm 103c7709595SYuri Pankovis automatically started by the 104c7709595SYuri Pankov.Sy svc:/network/nfs/server 10572d3dbb9SYuri Pankovservice. 10672d3dbb9SYuri PankovSee 107*bbf21555SRichard Lowe.Xr nfs 5 . 108c7709595SYuri Pankov.Pp 109c10c16deSRichard LoweSome routines that compare hostnames use case-sensitive string comparisons; 11072d3dbb9SYuri Pankovsome do not. 11172d3dbb9SYuri PankovIf an incoming request fails, verify that the case of the hostname in the file 11272d3dbb9SYuri Pankovto be parsed matches the case of the hostname called for, and attempt the 11372d3dbb9SYuri Pankovrequest again. 114