NFS Services Administrator's Guide (B.11.31.02) January 2008

You can configure all the direct automounts in the same map. Most users use the file name,
/etc/auto_direct, for their direct map. Following is the syntax for a direct map:
local mount-point mount options remote server:directory
where:
local mount-point The path name of the mount-point
mount options Options you want to apply to this mount.
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 3-5 illustrates how AutoFS sets up direct mounts.
Figure 3-5 How AutoFS Sets Up Direct Mounts
/
/auto
/project
/budget
/
/export
/FY94
NFS Server basil
NFS Client sage
NFS Mounts
/targets /ytd
/specs
/reqmnts /designs
/proj1
/
/export
/project
NFS Server thyme
/specs
/reqmnts /designs
/targets /ytd
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:
68 Configuring and Administering AutoFS