Debian Codegraph @

man/autofs.conf.5.in

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 .\" t
2 .TH AUTOFS.CONF 5 "23 Jan 2014"
3 .SH NAME
4 autofs.conf \- autofs configuration
5 .SH "DESCRIPTION"
6 .P
7 Configuration settings used by
8 .BR automount (8)
9 may be changed in the configuration file \fB@@autofsmapdir@@/autofs.conf\fP.
10 .P
11 This file contains two primary sections, \fBautofs\fP and \fBamd\fP.
12 .P
13 Configuration entries may be present at the beginning of the
14 configuration file without a section header and are implicitly
15 included as part of the \fBautofs\fP section.
16 .P
17 Each section name is enclosed in square brackets with
18 spaces between the brackets and the section name. The \fBamd\fP
19 section may be followed by further sections, named by the
20 top level mount point path, that contain per mount
21 configuration settings.
22 .SH "SECTION autofs CONFIGURATION OPTIONS"
23 .P
24 Configuration settings available are:
25 .TP
26 +.B open_file_limit
27 +.br
28 +Set the maximum number of open files. Note there may be other limits
29 +within the system that prevent this from being set, systemd for example
30 +may need a setting in the unit file to increase its default. The autofs
31 +default is 20480.
32 +.TP
33 .B timeout
34 .br
35 Sets the default mount timeout in seconds. The internal program
36 default is 10 minutes, but the default installed configuration
37 overrides this and sets the timeout to 5 minutes to be consistent
38 with earlier autofs releases.
39 .TP
40 .B master_wait
41 Sets the default maximum number of retries (actaul iterations is half
42 this, each is delayed by 2 seconds before retrying) waiting for the
43 master map to become available if it cannot be read at program start
44 (program default 10, then continue). This can be longer if the map
45 source itself waits for availability (such as sss).
46 .TP
47 .B negative_timeout
48 .br
49 Set the default timeout for caching failed key lookups (program default
50 60). If the equivalent command line option is given it will override this
51 setting.
52 .TP
53 .B positive_timeout
54 .br
55 Set the default timeout for using cached map entries (program default
56 120). If the equivalent command line option is given it will override this
57 setting.
58 .TP
59 .B mount_verbose
60 .br
61 Use the verbose flag when spawning mount(8), and log some process info
62 about the requestor and its parent (program default "no").
63 .TP
64 .B mount_wait
65 .br
66 Set the default time to wait for a response from a spawned mount(8)
67 before sending it a SIGTERM. Note that we still need to wait for the
68 RPC layer to timeout before the sub-process exits so this isn't ideal
69 but it is the best we can do. The default is to wait until mount(8)
70 returns without intervention.
71 .TP
72 .B umount_wait
73 .br
74 Set the default time to wait for a response from a spawned umount(8)
75 before sending it a SIGTERM. Note that we still need to wait for the
76 RPC layer to timeout before the sub-process exits so this isn't ideal
77 but it is the best we can do.
78 .TP
79 .B browse_mode
80 .br
81 Maps are browsable by default (program default "yes").
82 .TP
83 .B mount_nfs_default_protocol
84 .br
85 Set the default protocol that
86 .BR mount.nfs (8)
87 uses when performing a mount (program default 3). Autofs needs to know
88 the default NFS protocol that
89 .BR mount.nfs(8)
90 uses so it can do special case handling for its availability probe for
91 different NFS protocols. Since we can't identify this default
92 automatically we need to set it in the autofs configuration.
93 .TP
94 .B append_options
95 .br
96 Determine whether global options, given on the command line or per mount
97 in the master map, are appended to map entry options or if the map entry
98 options replace the global options (program default "yes", append options).
99 .TP
100 .B logging
101 .br
102 set default log level "none", "verbose" or "debug" (program default "none").
103 .TP
104 .B force_standard_program_map_env
105 .br
106 override the use of a prefix with standard environment variables when a
107 program map is executed. Since program maps are run as the privileged
108 user setting these standard environment variables opens automount(8) to
109 potential user privilege escalation when the program map is written in a
110 language that can load components from, for example, a user home directory
111 (program default "no").
112 .TP
113 .B map_hash_table_size
114 .br
115 This configuration option may be used to change the number of hash
116 table slots (default 1024).
117
118 This configuration option affects the overhead of searching the map
119 entry cache for map entries when there are a large number of entries.
120 It affects the number of entries that must be looked at to locate a
121 map entry in the map entry cache. For example, the default of 1024
122 and a direct map with 8000 entries would result in each slot
123 containing an average of 8 entries, which should be acceptable.
124
125 However, if excessive CPU usage is observed during automount lookups
126 increasing this option can reduce the CPU overhead considerably because
127 it reduces the length of the search chains.
128
129 Note that the number of entries in a map doesn't necessarily relate
130 to the number of entries used in the map entry cache.
131
132 There are two distinct cases where the map hash table can make a
133 significant difference, direct maps and indirect maps that use the
134 "browse" option.
135
136 For indirect maps that do not use the "browse" option entries are
137 added to the map entry cache at lookup so the number of active cache
138 entries, in this case, is usually much less than the number of entries
139 in the map. In this last case it would be unusual for the map entry
140 cache to grow large enough to warrant increasing the default before
141 an event that cleans stale entries, a map re-read for example.
142 .TP
143 .B use_hostname_for_mounts
144 .br
145 NFS mounts where the host name resolves to more than one IP address
146 are probed for availability and to establish the order in which mounts
147 to them should be tried. To ensure that mount attempts are made only
148 to hosts that are responding and are tried in the order of hosts with
149 the quickest response the IP address of the host needs to be used for
150 the mount.
151
152 If it is necessary to use the hostname given in the map entry for the
153 mount regardless, then set this option to "yes".
154
155 Be aware that if this is done there is no defense against the host
156 name resolving to one that isn't responding and while the number
157 of attempts at a successful mount will correspond to the number of
158 addresses the host name resolves to the order will also not correspond
159 to fastest responding hosts.
160 .TP
161 .B disable_not_found_message
162 .br
163 The original request to add this log message needed it to be unconditional.
164 That produces, IMHO, unnecessary noise in the log so a configuration option
165 has been added to provide the ability to turn it off. The default is "no"
166 to maintain the current behaviour.
167 .TP
168 .B use_ignore_mount_option
169 .br
170 An option to enable the use of autofs pseudo option "disable". This option
171 is used as a hint to user space that the mount entry should be ommitted from
172 mount table listings. The default is "no" to avoid unexpected changes in
173 behaviour and so is an opt-in setting.
174 .TP
175 .B sss_master_map_wait
176 .br
177 Set the time to wait and retry if sssd is unable to read the master map
178 at program start. Program default is 0 (don't wait) or 10 if sss supports
179 returning EHSTDOWN when the provider isn't available.
180
181 If the sss library supports returning EHOSTDOWN when the provider is down
182 then this value is how long to wait between retries reading the master map.
183 When reading dependent maps or looking up a map key this value is multiplied
184 by the number of retries that would be used when reading the master map.
185 .TP
186 .B use_mount_request_log_id
187 .br
188 Set whether to use a mount request log id so that log entries for specific
189 mount requests can be easily identified in logs that have multiple concurrent
190 requests. Default is don't use mount request log ids.
191 .SS LDAP Configuration
192 .P
193 Configuration settings available are:
194 .TP
195 .B ldap_timeout
196 .br
197 Set the network response timeout (default 8).
198 Set timeout value for the synchronous API calls. The default is the LDAP
199 library default of an infinite timeout.
200 .TP
201 .B ldap_network_timeout
202 .br
203 Set the network response timeout (default 8).
204 .TP
205 .B ldap_uri
206 .br
207 A space separated list of server uris of the form <proto>://<server>[/]
208 where <proto> can be ldap or ldaps. The option can be given multiple times.
209 Map entries that include a server name override this option and it is then
210 not used. Default is an empty list in which case either the server given
211 in a map entry or the LDAP configured default is used. This uri list is read at
212 startup and whenever the daemon receives a HUP signal.
213
214 This configuration option can also be used to request autofs lookup SRV RRs
215 for a domain of the form <proto>:///[<domain dn>]. Note that a trailing
216 "/" is not allowed when using this form. If the domain dn is not specified
217 the dns domain name (if any) is used to construct the domain dn for the
218 SRV RR lookup. The server list returned from an SRV RR lookup is refreshed
219 according to the minimum ttl found in the SRV RR records or after one hour,
220 whichever is less.
221 .TP
222 .B search_base
223 .br
224 The base dn to use when searching for amap base dn. This entry may be
225 given multiple times and each will be checked for a map base dn in
226 the order they occur in the configuration. The search base list is read
227 at startup and whenever the daemon recieves a HUP signal.
228 .TP
229 .B map_object_class
230 .br
231 The map object class. In the \fBnisMap\fP schema this corresponds to the class
232 \fBnisMap\fP and in the \fBautomountMap\fP schema it corresponds to the class
233 \fBautomountMap\fP.
234 .TP
235 .B entry_object_class
236 .br
237 The map entry object class. In the \fBnisMap\fP schema this corresponds
238 to the class \fBnisObject\fP and in the \fBautomountMap\fP schema it
239 corresponds to the class \fBautomount\fP.
240 .TP
241 .B map_attribute
242 .br
243 The attribute used to identify the name of the map to which this
244 entry belongs. In the \fBnisMap\fP schema this corresponds to the attribute
245 \fBnisMapName\fP and in the \fBautomountMap\fP schema it corresponds to the
246 attribute \fBou\fP or \fBautomountMapName\fP.
247 .TP
248 .B entry_attribute
249 .br
250 The attribute used to identify a map key. In the \fBnisMap\fP schema this
251 corresponds to the attribute \fBcn\fP and in the \fBautomountMap\fP schema
252 it corresponds to the attribute \fBautomountKey\fP.
253 .TP
254 .B value_attribute
255 .br
256 The attribute used to identify the value of the map entry. In the \fBnisMap\fP
257 schema this corresponds to the attribute \fBnisMapEntry\fP and in the \fBautomountMap\fP
258 schema it corresponds to the attribute
259 .BR automountInformation .
260 .TP
261 .B NOTE:
262 It is essential that entries use class and attribute in a consistent
263 manner for correct operation of autofs. For example mixing \fBcn\fP
264 and \fBautomountKey\fP attributes in \fBautomount\fP schema will
265 not work as expected.
266 .TP
267 .B auth_conf_file
268 This configuration option may be used to specify an alternate location
269 for the ldap authentication configuration file. See
270 .BR autofs_ldap_auth.conf (5)
271 for more information.
272 .SH "SECTION amd CONFIGURATION OPTIONS"
273 .P
274 A number of the amd configuration options are not used by autofs,
275 some because they are not relevant within autofs, some because
276 they are done differently in autofs and others that are not yet
277 implemented.
278
279 Since \fBmount_type\fP is always autofs (because there's no user space
280 NFS server) the configuration entries relating to that aren't used.
281 Also, server availability is done differently within autofs so the
282 options that relate to the amd server monitoring sub-system are
283 also not used.
284
285 These options are \fBmount_type\fP, \fBauto_attrcache\fP, \fBportmap_program\fP,
286 \fBnfs_vers_ping\fP, \fBnfs_allow_any_interface\fP, \fBnfs_allow_insecure_port\fP,
287 \fBnfs_proto\fP, \fBnfs_retransmit_counter\fP, \fBnfs_retransmit_counter_udp\fP,
288 \fBnfs_retransmit_counter_tcp\fP, \fBnfs_retransmit_counter_toplvl\fP,
289 \fBnfs_retry_interval\fP, \fBnfs_retry_interval_udp\fP, \fBnfs_retry_interval_tcp\fP,
290 \fBnfs_retry_interval_toplvl\fP and \fBnfs_vers\fP.
291
292 Other options that are not used within the autofs implementation:
293 .TP
294 .BR log_file ", " truncate_log
295 .br autofs used either stderr when running in the foreground or
296 sends its output to syslog so an alternate log file (or truncating
297 the log) can't be used.
298 .TP
299 .B print_pid
300 .br
301 There's no corresponding option for this within autofs.
302 .TP
303 .BR use_tcpwrappers ", " show_statfs_entries
304 .br
305 There's no user space NFS server to control access to so this
306 option isn't relevant. The show_statfs_entries can't be
307 implemented for the same reason.
308 .TP
309 .B debug_mtab_file
310 .br
311 There's no user space NFS server and autofs avoids using file
312 based mtab whenever possible.
313 .TP
314 .B sun_map_syntax
315 .br
316 Sun map format is handled by autofs itself.
317 .TP
318 .BR plock ", " show_statfs_entries ", " preferred_amq_port
319 .br
320 Are not supported by autofs.
321 .TP
322 .BR ldap_cache_maxmem ", " ldap_cache_seconds
323 .br
324 External ldap caching is not used by autofs.
325 .TP
326 .B ldap_proto_version
327 .br
328 autofs always attempts to use the highest available ldap
329 protocol version.
330 .TP
331 .BR cache_duration ", " map_reload_interval ", " map_options
332 .br
333 The map entry cache is continually updated and stale entries
334 cleaned on re-load, which is done when map changes are detected
335 so these configuration entries are not used by autofs. An
336 exception to this is the case where the map is large. In this
337 case it may be necessary to read the whole map at startup even if
338 browsing is not enabled. Adding the cache:=all option to
339 map_options can be used to for this.
340 .TP
341 .B localhost_address
342 This is not used within autofs. This configuration option was
343 only used in the amd user space server code and is not relevant
344 within autofs.
345 .P
346 Options that are handled differently within autofs:
347 .TP
348 .B pid_file
349 .br
350 To specify a pid file name a command line option must be used on startup.
351 .TP
352 .B print_version
353 .br
354 Program version and feature information is obtained by using the
355 automount command line option "-V".
356 .TP
357 .B debug_options ", " log_options
358 .br
359 autofs has somewhat more limited logging and debug logging options.
360 When the log_options options is encountered it is converted to the
361 nearest matching autofs logging option. Since the configuration
362 option debug_options would be handled the same way it is ignored.
363 .TP
364 .B restart_mounts
365 .br
366 This option has no sensible meaning within autofs because autofs
367 always tries to re-connect to existing mounts. While this has its
368 own set of problems not re-connecting to existing mounts always
369 results in a non-functional automount tree if mounts were busy at
370 the last shutdown (as is also the case with amd when using
371 mount_type autofs).
372 .TP
373 .B forced_unmounts
374 .br
375 Detaching mounts often causes serious problems for users of
376 existing mounts. It is used by autofs in some cases, either at
377 the explicit request of the user (with a command line or init
378 option) and in some special cases during program operation but
379 is avoided whenever possible.
380 .P
381 A number of configuration options are not yet implemented:
382 .TP
383 .B search_path
384 .br
385 Always a little frustrating, the compiled in map location should
386 be used to locate maps but isn't in some cases. This requires
387 work within autofs itself and that will (obviously) include
388 implementing this configuration option for the amd map parser
389 as well.
390 .TP
391 .B fully_qualified_hosts
392 Not yet implemented.
393 .TP
394 .B unmount_on_exit
395 .br
396 Since autofs always tries to re-connect to mounts left mounted
397 from a previous shutdown this is a sensible option to implement
398 and that will be done.
399 .TP
400 .B browsable_dirs
401 .br
402 Allow map keys to be shown in directory listings. This option
403 can have values of "yes" or "no". The default is "no". A variation
404 of this option, "browsable", can be used as a pseudo mount option
405 in type "auto" map entries to provide browsing functionality
406 in sub-mounts. The amd "browsable_dirs = full" option cannot be
407 implemented within the current autofs framework and is not supported.
408 .TP
409 .B exec_map_timeout
410 .br
411 A timeout is not currently used for program maps but this might be
412 implemented in the future.
413 .TP
414 .B tag
415 .br
416 The tag option is not implemented within autofs.
417 .P
418 Supported options:
419 .TP
420 .BR arch ", " karch ", " os ", " osver
421 .br
422 These options default to what is returned from uname(2) and can
423 be overridden if required.
424 .TP
425 .B full_os
426 This option has no default and must be set in the configuration
427 if used in maps.
428 .TP
429 .B cluster
430 .br
431 If not set defaults to the host domain name. This option corresponds
432 to the HP_UX cluster name (according to the amd source) and is
433 probably not used in Linux but is set anyway.
434 .TP
435 .B vendor
436 This option has a default value of "unknown", it must be set in the
437 configuration if used in maps.
438 .TP
439 .B auto_dir
440 .br
441 Is the base name of the mount tree used for external mounts that
442 are sometimes needed by amd maps. Its default value is "/a".
443 .TP
444 .B map_type
445 .br
446 Specifies the autofs map source, such as file, nis, ldap etc. and
447 has no default value set.
448 .TP
449 .B map_defaults
450 .br
451 This option is used to override /defaults entries within maps
452 and can be used to provide different defaults on specific machines
453 without having to modify centrally managed maps. It is empty by
454 default.
455 .TP
456 .B search_path
457 .br
458 Colon separated paths to search for maps that are not specified
459 as a full path.
460 .TP
461 .B dismount_interval
462 .br
463 Is equivalent to the autofs timeout option. It is only possible
464 to use this with type "auto" mounts due to the way the autofs
465 kernel module performs expiry. It takes its default value from
466 the autofs internal default of 600 seconds.
467 .TP
468 .B autofs_use_lofs
469 .br
470 If set to "yes" autofs will attempt to use bind mounts for type
471 "link" entries when possible (default is "yes").
472 .TP
473 .B nis_domain
474 .br
475 Allows setting of a domain name other than the system default.
476 .TP
477 .B local_domain
478 .br
479 Is used to override (or set) the host domain name.
480 .TP
481 .B normalize_hostnames
482 .br
483 If set to "yes" then the contents of ${rhost} is translated in
484 its official host name.
485 .TP
486 .B domain_strip
487 .br
488 If set to "yes" the domain name part of the host is stripped
489 when normalizing hostnames. This can be useful when using of
490 the same maps in a multiple domain environment.
491 .TP
492 .B normalize_slashes
493 .br
494 This option is set to "yes" by default and will collapse
495 multiple unescaped occurrences of "/" to a single "/".
496 .TP
497 .BR selectors_in_defaults ", " selectors_on_default
498 .br
499 This option has a default value of "no". If set to "yes" then
500 any defaults entry will be checked for selectors to determine
501 the values to be used. selectors_in_defaults is the preferred
502 option to use.
503 .TP
504 .B ldap_base
505 .br
506 iThis option has no default value. It must be set to the base dn
507 that is used for queries if ldap is to be used as a map source.
508 .TP
509 .B ldap_hostports
510 .br
511 This option has no default value set. It must be set to the URI
512 of the LDAP server to be used for lookups when ldap is used as
513 a map source. It may contain a comma or space separated list of
514 LDAP URIs.
515 .TP
516 .B hesiod_base
517 .br
518 Sets the base name used for hesiod map sources.
519 .TP
520 .B linux_ufs_mount_type
521 .br
522 This is an additional configuration option for the autofs amd format
523 parser implementation.
524
525 There's no simple way to determine what the system default filesystem
526 is and am-utils needs to be continually updated to do this and can
527 easily get it wrong ayway. So allow it to be set in the configuration.
528 .SH EXAMPLE
529 .sp
530 .RS +.2i
531 .ta 1.0i
532 .nf
533 [ autofs ]
534 timeout = 300
535 browse_mode = no
536
537 [ amd ]
538 dismount_interval = 300
539 map_type = nis
540 autofs_use_lofs = no
541
542 [ /expamle/mount ]
543 dismount_interval = 60
544 map_type = file
545 .fi
546 .RE
547 .SH "SEE ALSO"
548 .BR automount (8),
549 .BR auto.master (5),
550 .BR autofs_ldap_auth.conf (5).
551 .SH AUTHOR
552 This manual page was written by Ian Kent <[email protected]>.