Information Technology Reference
In-Depth Information
By default, a resource is unmounted if it is not accessed for 10 minutes. This
default time can be modified by using the automount command and includ-
ing the -t command-line argument followed by a number representing a
time (in seconds).
The configuration of the AutoFS service is controlled by AutoFS maps that
define local mount points and associate remote NFS resources with the
mount points. These maps are read by the automount command during ini-
tialization.
The three types of AutoFS (or automount) maps are auto_master , direct ,
and indirect . All these maps are located in the /etc directory.
The /etc/auto_master File
One auto_master map is located under the /etc directory. The auto_master
file associates directories with indirect maps. In addition, the auto_master
file references one or more direct maps.
Entries in the auto_master file consist of three fields:
Mount point —The mount point is the initial portion of a full pathname
to a local directory where an NFS resource should be mounted.
Map name —The map name is the filename of a map (direct or indirect)
or a special built-in map. The built-in maps are easily identifiable
because their names begin with a hyphen (-).
Mount options —The mount options field contains zero or more (comma-
separated) NFS-specific mount options, as described in Table 15.3.
A special mount point that uses the notation /- indicates that the map listed
in the map name field is a direct map that actually contains the mount points.
In addition, a special entry that consists of only the keyword +auto_master is
used to include AutoFS maps that are part of Network Information Service
(NIS) or NIS+.
The following listing shows the contents of the /etc/auto_master file:
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn
/- auto_direct
Search WWH ::




Custom Search