2 .\" Copyright (c) 1997-1999 Erez Zadok
3 .\" Copyright (c) 1990 Jan-Simon Pendry
4 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5 .\" Copyright (c) 1990 The Regents of the University of California.
6 .\" All rights reserved.
8 .\" This code is derived from software contributed to Berkeley by
9 .\" Jan-Simon Pendry at Imperial College, London.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. All advertising materials mentioning features or use of this software
20 .\" must display the following acknowledgment:
21 .\" This product includes software developed by the University of
22 .\" California, Berkeley and its contributors.
23 .\" 4. Neither the name of the University nor the names of its contributors
24 .\" may be used to endorse or promote products derived from this software
25 .\" without specific prior written permission.
27 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .\" %W% (Berkeley) %G%
41 .\" $Id: amd.conf.5,v 1.3 1999/03/30 17:23:08 ezk Exp $
49 .Nd amd configuration file
55 file is the configuration file for amd, as part of the am-utils suite.
58 contains runtime configuration information for the
62 The file consists of sections and parameters. A section begins with the
63 name of the section in square brackets and continues until the next section
64 begins or the end of the file is reached. Sections contain parameters of
68 The file is line-based - that is, each newline-terminated line represents
69 either a comment, a section name or a parameter. No line-continuation
72 Section, parameter names and their values are case sensitive.
74 Only the first equals sign in a parameter is significant. Whitespace before
75 or after the first equals sign is discarded. Leading, trailing and
76 internal whitespace in section and parameter names is irrelevant. Leading
77 and trailing whitespace in a parameter value is discarded. Internal
78 whitespace within a parameter value is not allowed, unless the whole
79 parameter value is quoted with double quotes as in
84 Any line beginning with a pound sign (#) is ignored, as are lines containing
87 The values following the equals sign in parameters are all either a string
88 (no quotes needed if string does not include spaces) or a boolean, which may
89 be given as yes/no. Case is significant in all values. Some items such as
90 cache timeouts are numeric.
93 .It Nm The [global] section
94 Parameters in this section either apply to
96 as a whole, or to all other regular map sections which follow. There
97 should be only one global section defined in one configuration file.
99 It is highly recommended that this section be specified first in the
100 configuration file. If it is not, then regular map sections which precede
101 it will not use global values defined later.
102 .It Nm Regular [/map] sections
103 Parameters in regular (non-global) sections apply to a single map entry.
104 For example, if the map section
106 is defined, then all parameters following it will be applied to the
108 amd-managed mount point.
112 .It Sy Parameters common to all sections
113 These parameters can be specified either in the global or a map specific
114 section. Entries specified in a map-specific section override the default
115 value or one defined in the global section. If such a common parameter is
116 specified only in the global section, it is applicable to all regular map
117 sections that follow.
119 .It Nm browsable_dirs (string, default=no)
122 then amd's top-level mount points will be browsable to
124 calls. This means you could run for example
126 and see what keys are available to mount in that directory. Not all entries
131 entry, wildcardentries, and those with a
133 in them are not included. If you specify
135 to this option, all but
137 will be visible. Note that if you run a command which will attempt to
139 the entries, such as often done by
144 will attempt to mount
146 entry in that map. This is often called a
148 .It Nm map_options (string, default no options)
149 This option is the same as specifying map options on the command line to
153 .It Nm map_type (string, default search all map types)
154 If specified, amd will initialize the map only for the type given.
155 This is useful to avoid the default map search type used by amd which
156 takes longer and can have undesired side-effects such as initializing
157 NIS even if not used. Possible values are:
159 .Bl -tag -width 10n -compact
163 Hesiod name service from MIT
165 Lightweight Directory Access Protocol
167 (New) dbm style hash files
169 Network Information Services (version 2)
171 Network Information Services Plus (version 3)
177 .It Nm mount_type (string, default=nfs)
178 All amd mount types default to
184 server on the map mount points, for the local host it is running on. If
186 is specified, amd will be an autofs server for those mount points.
187 .It Nm search_path (string, default no search path)
190 search path for file maps. Using a search path, sites can allow for
191 local map customizations and overrides, and can distributed maps in
192 several locations as needed.
194 .It Nm Parameters applicable to the global section only
196 .It Nm arch (string, default to compiled in value)
197 Allows you to override the value of the
201 .It Nm auto_dir (string, default=/a)
206 This sets the private directory where amd will create sub-directories for its
208 .It Nm cache_duration (numeric, default=300)
213 Sets the duration in seconds that looked up map entries remain in the cache.
214 .It Nm cluster (string, default no cluster)
219 Specifies the alternate
222 .It Nm debug_options (string, default no debug options)
227 Specify any debugging options for
229 Works only if am-utils was configured for debugging using the
230 .Ic --enable-debug option .
233 option alone can be turned on via
234 .Ic --enable-debug=mem .
235 Otherwise debugging options are ignored. Options are comma delimited, and can
236 be preceded by the string
238 to negate their meaning. You can get the list of supported debugging options
243 .Bl -tag -width 10n -compact
256 info service specific debugging
257 .Pq hesiod, nis, etc.
259 trace memory allocations
267 full debug but no daemon
271 .It Nm dismount_interval (numeric, default=120)
276 Specify, in seconds, the time between attempts to dismount file systems that
277 have exceeded their cached times.
278 .It Nm fully_qualified_hosts (string, default=no)
282 will perform RPC authentication using fully-qualified host names. This is
283 necessary for some systems, and especially when performing cross-domain
284 mounting. For this function to work, the
288 is used, requiring that
291 .It Nm hesiod_base (string, default=automount)
292 Specify the base name for hesiod maps.
293 .It Nm karch (string, default to karch of the system)
298 Allows you to override the kernel-architecture of your system. Useful for
301 machines, where you can build one
303 binary and run it on multiple machines, yet you want each one to get the
307 .Pq for example, sun4c, sun4m, sun4u, etc.
313 to figure out the kernel architecture of the machine.
314 .It Nm ldap_base (string, default not set)
315 Specify the base name for LDAP.
316 .It Nm ldap_cache_maxmem (numeric, default=131072)
317 Specify the maximum memory amd should use to cache LDAP entries.
318 .It Nm ldap_cache_seconds (numeric, default=0)
319 Specify the number of seconds to keep entries in the cache.
320 .It Nm ldap_hostports (string, default not set)
321 Specify LDAP-specific values such as country and organization.
322 .It Nm local_domain (string, default no sub-domain)
327 Specify the local domain name. If this option is not given the domain name is
328 determined from the hostname by removing the first component of the
329 fully-qualified host name.
330 .It Nm log_file (string, default=/dev/stderr)
335 Specify a file name to log
337 events to. If the string
341 will send its events to the standard error file descriptor. IF the string
345 will record its events with the system logger
347 The default syslog facility used is
349 If you wish to change it, append its name to the log file name, delimited by a
350 single colon. For example, if
356 will log messages via
361 .Pq if it exists on the system .
362 .It Nm log_options (string, default no logging options)
367 Specify any logging options for
369 Options are comma delimited, and can be preceded by the string
371 to negate their meaning. The
373 logging option is only available if
377 You can get the list of supported debugging options by running
381 .Bl -tag -width 10n -compact
387 non-fatal system errors
395 additional statistical information
397 non-fatal user errors
403 .It Nm nfs_retransmit_counter (numeric, default=110)
407 .Fl t Ar interval.counter
410 Specifies the retransmit counter's value in tenths of seconds.
411 .It Nm nfs_retry_interval (numeric, default=8)
415 .Fl t Ar interval.counter
418 Specifies the interval in tenths of seconds, between NFS/RPC/UDP retries.
420 .Po string, default to local
427 Specify an alternative
429 domain from which to fetch the
431 maps. The default is the system domain name. This option is ignored if
433 support is not available.
434 .It Nm normalize_hostnames (boolean, default=no)
441 then the name refereed to by
443 is normalized relative to the host database before being used. The effect is
444 to translate aliases into
447 .It Nm os (string, default to compiled in value)
452 Allows you to override the compiled-in name of the operating
453 system. Useful when the built-in name is not desired for backward
454 compatibility reasons. For example, if the build in name is
456 you can override it to
458 and use older maps which were written with the latter in mind.
459 .It Nm osver (string, default to compiled in value)
464 Override the compiled-in version number of the operating
465 system. Useful when the built in version is not desired for backward
466 compatibility reasons. For example, if the build in version is
468 you can override it to
470 and use older maps that were written with the latter in mind.
471 .It Nm pid_file (string, default=/dev/stdout)
472 Specify a file to store the process ID of the running daemon into. If not
475 will print its process id only the standard output. Useful for killing
477 after it had run. Note that the PID of a running
479 can also be retrieved via
481 This file is used only if the
484 .It Nm plock (boolean, default=yes)
491 lock the running executable pages of
493 into memory. To improve
495 performance, systems that support the
499 process into memory. This way there is less chance it that the operating
500 system will schedule, page out, and swap the
502 process as needed. This improves
504 performance, at the cost of reserving the memory used by the
507 .Pq making it unavailable for other processes .
508 .It Nm portmap_program (numeric, default=300019)
509 Specify an alternate Port-mapper RPC program number, other than the official
510 number. This is useful when running multiple
512 processes. For example, you can run another
516 mode, without affecting the primary
518 process in any way. For safety reasons, the alternate program numbers that
519 can be specified must be in the range 300019-300029, inclusive.
523 which can be used to specify an alternate program number of an
525 to contact. In this way,
527 can fully control any number of
529 processes running on the same host.
530 .It Nm print_pid (boolean, default=no)
538 will print its process ID upon starting.
539 .It Nm print_version (boolean, default=no)
544 but the version prints and
549 will print its version information string, which includes some configuration
550 and compilation values.
551 .It Nm restart_mounts (boolean, default=no)
559 will scan the mount table to determine which file systems are currently
560 mounted. Whenever one of these would have been auto-mounted,
563 .It Nm selectors_on_default (boolean, default=no)
568 entry of maps will be looked for and process any selectors before setting
569 defaults for all other keys in that map. Useful when you want to set
570 different options for a complete map based on some parameters. For example,
571 you may want to better the
573 performance over slow slip-based networks as
578 wire==slip-net;opts:=intr,rsize=1024,wsize=1024 \\
579 wire!=slip-net;opts:=intr,rsize=8192,wsize=8192
581 .It Nm show_statfs_entries (boolean, default=no)
584 then all maps which are browsable will also show the number of entries
589 .Po This is accomplished by returning non-zero values to the
592 .It Nm unmount_on_exit (boolean, default=no)
597 will attempt to unmount all file systems which it knows about. Normally
602 mounted filesystems intact. Note that
604 does not know about file systems mounted before it starts up, unless the
610 .It Sy Parameters applicable to regular map sections
612 .It Nm map_name (string, must be specified)
613 Name of the map where the keys are located.
614 .It Nm tag (string, default no tag)
615 Each map entry in the configuration file can be tagged. If no tag is
616 specified, that map section will always be processed by
618 If it is specified, then
620 will process the map if the
624 and the value given to that command-line option matches that in the map
630 configuration I use daily.
632 # GLOBAL OPTIONS SECTION
634 normalize_hostnames = no
638 log_file = /var/log/amd
642 selectors_on_default = yes
643 # config.guess picks up "sunos5" and I don't want to edit my maps yet
645 # if you print_version after setting up "os", it will show it.
648 search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib
651 # DEFINE AN AMD MOUNT POINT
665 map_name = amd.import
669 map_name = amd.tftpboot
675 .An Erez Zadok Aq ezk@cs.columbia.edu ,
676 Department of Computer Science, Columbia University, New York, USA.
678 .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
679 Department of Computing, Imperial College, London, UK.
681 .An Other Authors and contributers to am-utils are listed in the
683 file distributed with am-utils.
687 utility first appeared in 4.4BSD.