AUTO.MASTER(5) File Formats Manual AUTO.MASTER(5)
NAME
auto.master - Master Map for automounter
DESCRIPTION
The auto.master map is consulted to set up automount managed mount points when the autofs(8) script is invoked or the automount(8) program
is run. Each line describes a mount point and refers to an autofs map describing file systems to be mounted under the mount point.
The default location of the master map is /etc/auto.master but an alternate name may be given on the command line when running the auto‐
mounter and the default master map may changed by setting the MASTER_MAP_NAME configuration variable in /etc/sysconfig/autofs. If the
master map name has no path then the system Name Service Switch configuration will be consulted and each of the sources searched in line
with the rules given in the Name Service Switch configuration.
Access to mounts in maps is governed by a key.
For direct maps the mount point is always specified as:
/-
and the key used within the direct map is the full path to the mount point. The direct map may have multiple entries in the master map.
For indirect maps access is by using the path scheme:
/mount-point/key
where mount-point is one of the entries listed in the master map. The key is a single directory component and is matched against entries
in the map given in the entry (See autofs(5)).
Additionally, a map may be included from its source as if it were itself present in the master map by including a line of the form:
+ [maptype,format:]map[options] and automount(8) will process the map according to the specification described below for map entries. In‐
direct map entries must be unique in the master map so second and subsequent entries for an indirect mount point are ignored by auto‐
mount(8).
FORMAT
Master map entries have three fields separated by an arbitrary number of spaces or tabs. Lines beginning with # are comments. The first
field is the mount point described above and the second field is the name of the map to be consulted for the mount point followed by the
third field which contains options to be applied to all entries in the map.
The format of a master map entry is:
mount-point [map-type[,format]:]map [options]
mount-point
Base location for the autofs filesystem to be mounted. For indirect maps this directory will be created (as with mkdir -p) and is
removed when the autofs filesystem is umounted.
map-type
Type of map used for this mount point. The following are valid map types:
file The map is a regular text file.
program
The map is an executable program, which is passed a key on the command line and returns an entry (everything besides the
key) on stdout if successful.
yp The map is a NIS (YP) database.
nisplus
The map is a NIS+ database.
hesiod The map is a hesiod database whose filsys entries are used for maps.
ldap or ldaps
The map is stored in an LDAP directory. If ldaps is used the appropriate certificate must be configured in the LDAP client.
multi This map type allows the specification of multiple maps separated by "--". These maps are searched in order to resolve key
lookups.
dir This map type can be used at + master map including notation. The contents of files under given directory are included to
the mas
auto.master
最新推荐文章于 2023-09-05 18:50:00 发布