NFS Services Administrator's Guide (B.11.31.03) August 2008

Figure 3-5 How AutoFS Sets Up Direct Mounts
Automounting a Remote Directory Using an Indirect Map
This section describes how to automount a remote directory using an indirect map.
To automount a remote directory using an indirect map, follow these steps:
1. If you are using local files for maps, use an editor to edit the master map in the
/etc directory. The master map is commonly called /etc/auto_master. If you
are using NIS, open the master map on the corresponding master server.
If you are using LDAP, the map must be modified on the LDAP server. For
information on modifying the map, see the LDAP-UX Client Services B.04.00
Administrator’s Guide (J4269-90064).
If the indirect map you modified is not listed in the master map, add the following
entry to the master map:
local_parent_directory indirect_map_name [mount_options]
2. If you are using local files for your AutoFS maps, use an editor to open or create
an indirect map in the /etc directory. Add a line with the following syntax, to
the indirect map:
local_subdirectory [mount_options] server:remote_directory
If you are using NIS or LDAP to manage maps, add an entry to an indirect map
on the corresponding NIS master server or the LDAP directory.
3. If you are using NIS to manage maps, rebuild the maps and push them to the slave
servers. For more information on NIS maps, see the NIS Administrator’s Guide
(5991-2187).
4. If you modified the master map, enter the following command on each host that
uses the map, to force AutoFS to read the modified master map:
/usr/sbin/automount
Configuring AutoFS Direct and Indirect Mounts 87