NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering AutoFS
Chapter 2 119
cd ../source
Here is another example from an indirect map. In this example, the same
mount option (nosuid) applies to all three automounted directories.
chap2 -nosuid /text sage:/our_book/chap2 \
/graphics basil:/our_book/artwork/chap2 \
/old sage:/our_book/oldfiles/chap2
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:/export/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, AutoFS will
mount the directory /export/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, AutoFS will consult the NIS
map auto_home for information on mounting the user’s home directory.
The plus sign (+) tells AutoFS 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, AutoFS assumes it is a local file. If the
map name contains no slashes, AutoFS uses the Name Service Switch to
determine whether it is a file or an NIS map. See “Configuring the Name
Service Switch” on page 267.
You can include an automounter map inside a local file but not inside an
NIS map.