Penguin
Blame: rpc.mountd(8)
EditPageHistoryDiffInfoLikePages
Annotated edit history of rpc.mountd(8) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 MOUNTD
2 !!!MOUNTD
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 BUGS
8 SIGNALS
9 FILES
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 mountd - NFS mount daemon
16 !!SYNOPSIS
17
18
19 __/usr/sbin/rpc.mountd [[ -f exports-file ] [[ -d facility ]
20 [[ -P port ] [[ -Dhnprv ] [[ --debug facility ] [[
21 --exports-file=file ] [[ --help ] [[ --allow-non-root ] [[
22 --re-export ] [[ --no-spoof-trace ] [[ --version
23 ]__
24 !!DESCRIPTION
25
26
27 The ''mountd'' program is an NFS mount daemon. When
28 receiving a MOUNT request from an NFS client, it checks the
29 request against the list of exported file systems listen in
30 ''/etc/exports''. If the client is permitted to mount the
31 file system, ''mountd'' creates a file handle for the
32 requested directory, and adds an entry ''/etc/rmtab''.
33 Upon receipt of an UMOUNT request, it removes the client's
34 entry from ''rmtab''. Note, however, that a client may
35 still be able to use the file handle after the UMOUNT
36 request (for instance, if the client mounts the same remote
37 file system on two different mount points). Similarly, if a
38 client reboots without notifying ''mountd'', a stale
39 entry will remain in ''rmtab''.
40
41
42 __Running from inetd__
43
44
45 ''mountd'' can be started from ''inetd'' rather than
46 at system boot time by adding the following two lines to
47 ''/etc/inetd.conf'':
48
49
50 mount/1-2 dgram rpc/udp wait root /usr/sbin/rpc.mountd rpc.mountd
51 mount/1-2 stream rpc/tcp wait root /usr/sbin/rpc.mountd rpc.mountd
52 When run from ''inetd'', ''mountd'' will terminate after a certain period of inactivity.
53 !!OPTIONS
54
55
56 __-f__ or __--exports-file__
57
58
59 This option specifies the exports file, listing the clients
60 that this server is prepared to serve and parameters to
61 apply to each such mount (see exports(5)). By default
62 exports are read from ''/etc/exports''.
63
64
65 __-d__ or __--debug__
66
67
68 Log each transaction verbosely to standard error. Valid log
69 facilities are ''call'' for the logging of all calls,
70 ''auth'' for client authentication, ''fhcache'' for
71 operations of the file handle cache, and ''rmtab'' for
72 manipulation of ''/etc/rmtab''. By default, log output is
73 sent to syslogd unless the daemon runs in the
74 foreground.
75
76
77 __-F__ or __--foreground__
78
79
80 Unlike normal in operation, ''mountd'' will not detach
81 from the terminal when given this option. When debugging is
82 requested, it will be sent to standard error.
83
84
85 __-h__ or __--help__
86
87
88 Provide a short help summary.
89
90
91 __-n__ or __--allow-non-root__
92
93
94 Allow incoming mount requests to be honored even if they do
95 not originate from reserved IP ports. Some older NFS client
96 implementations require this. Some newer NFS client
97 implementations don't believe in reserved port
98 checking.
99
100
101 __-P portnum__ or __--port portnum__
102
103
104 Makes ''mountd'' listen on port __portnum__ instead of
105 some random port. By default, ''mountd'' will listen on
106 the mount/udp port specified in ''/etc/services'', or, if
107 that is undefined, on some arbitrary port number below
108 1024.
109
110
111 __-p__ or __--promiscuous__
112
113
114 Put the server into promiscuous mode where it will serve any
115 host on the network.
116
117
118 __-r__ or __--re-export__
119
120
121 Allow imported NFS or SMB file-systems to be exported. This
122 can be used to turn a machine into an NFS/SMB multiplier.
123 Caution should be used when re-exporting loopback mounts
124 because re-entering the mount point will result in deadlock
125 between the client file system code and the
126 server.
127
128
129 __-t__ or __--no-spoof-trace__
130
131
132 By default, ''mountd'' logs every access by unauthorized
133 clients. This option turns off logging of such spoof
134 attempts for all hosts listed explicitly in the
135 ''exports'' file.
136
137
138 __-v__ or __--version__
139
140
141 Report the current version number of the
142 program.
143
144
145 __Access Control__
146
147
148 For enhanced security, access to ''mountd'' can be
149 limited via the TCP wrapper library that's part of Wietse
150 Venema's tcp_wrappers package. Support for this option must
151 be selected at compile time. In order to restrict access to
152 all hosts on your local network (say 192.168.1.0), you would
153 add the following lines to your ''/etc/hosts.allow''
154 file:
155
156
157 ''rpc.mountd : 192.168.1. : allow
158 rpc.mountd : ALL : deny
159 ''This example assumes your TCP wrapper library was compiled with options support (which I highly recommend). If it has been compiled without options support, you need to add the following two lines to ''/etc/hosts.allow and /etc/hosts.deny,'' respectively:
160
161
162 ''# hosts.allow:
163 rpc.mountd : 192.168.1
164 # hosts.deny
165 rpc.mountd : ALL
166 ''When changing this information, you must restart ''mountd'' for these changes to take effect, either by killing and restarting, or by sending it the HUP signal.
167 !!BUGS
168
169
170 The information in ''/etc/rmtab'' is inaccurate more
171 often than not.
172 !!SIGNALS
173
174
175 When receiving a SIGHUP, ''mountd'' will re-read the
176 ''exports'' file and any access restrictions defined in
177 the ''/etc/hosts.allow and /etc/hosts.deny'' file. Note
178 that to make export changes take effect, you have to send
179 ''nfsd'' a SIGHUP as well.
180 !!FILES
181
182
183 ''/etc/exports
184 /etc/rmtab''
185 !!SEE ALSO
186
187
188 exports(5), nfsd(8), ugidd(8C), showmount(8).
189 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.