NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 288
To Include an Automounter Map in Another
Automounter Map
To include the contents of an automounter map in another
automounter map, add a plus sign (+) before the map name, as in the
following example:
# /etc/auto_home file
# local mount point mount options remote
server:directory
basil -nosuid basil:/home/basil
+auto.home
Assume the /etc/auto_home map is listed in the master map with the
following line:
/home /etc/auto_home
This example has the following effect:
If a user logs in whose home directory is in /home/basil, the
automounter will mount the directory /home/basil from host basil.
If a user logs in whose home directory is in /home/sage, /home/thyme, or
any subdirectory of /home other than basil, the automounter will look
in either the NIS or NIS+ auto.home map for information on mounting
the user’s home directory (depending on the Name Service Switch
configuration).
The plus sign (+) tells the automounter to look in a different map for the
information it needs to mount the directory. If the map name following
the plus sign begins with a slash, the automounter assumes it is a local
map. If the map name contains no slashes, the automounter uses the
Name Service Switch to determine whether it is a file, an NIS map, or an
NIS+ table. See “Configuring the Name Service Switch” on page 267.
You can include an NIS or NIS+ map inside an NIS or NIS+ master or
direct map. You cannot include an NIS or NIS+ map inside an NIS or
NIS+ indirect map.
If you specify an included NIS+ automounter map with no dots in the
name, the automounter appends org_dir.defaultdomain to the map
name. For example, if the map name you specify is auto_home, and your
Name Service Switch configuration indicates that NIS+ is to be used, the
automounter will look for a map called
auto_home.org_dir.defaultdomain.