NFS Services Administrator Guide (5900-3045, March 2013)
remote server:directory
Location of the directory, on the server, that is to be mounted.
If you plan to use NIS or LDAP to manage maps, there can be only one direct map in your
configuration.
If the direct map name in the master map begins with a slash (/), AutoFS considers it to be a local
file. If it does not contain a slash, AutoFS uses the NSS to determine whether it is a file, LDAP, or
an NIS map. For more information on using NSS, see nsswitch.conf(4).
Sample File Entries for NFS Direct Automounts
Following are sample entries from the AutoFS master map on the NFS client, sage:
# /etc/auto_master file
# local mount-point map name mount options
/- /etc/auto_direct
Following are sample entries from an AutoFS direct map on the NFS client, sage. The hash (#)
symbol indicates a commented line.
# /etc/auto_direct file
# local mount-point mount options remote server:directory
/auto/project/specs -nosuid thyme:/export/project/specs
/auto/project/budget -nosuid basil:/export/FY94/proj1
Figure 10 illustrates how AutoFS sets up direct mounts.
Figure 10 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:
Configuring AutoFS Direct and Indirect Mounts 61