NFS Services Administrator's Guide (B.11.31.02) January 2008
Sample File Entries for NFS Indirect Automounts
The local_subdirectory specified in an indirect map is the lowest-level subdirectory in the
local directory path name. For example, if you are mounting a remote directory on
/nfs/apps/draw, draw is the local_subdirectory specified in the indirect map.
Following are sample lines from the AutoFS master map on the NFS client, sage. The master
map also includes an entry for the /etc/auto_direct direct map.
# /etc/auto_master file
# local mount-point map name mount options
/- /etc/auto_direct
/nfs/desktop /etc/auto_desktop
The local_parent_directory specified in the master map consists of directories, except the
lowest-level subdirectory in the local directory pathname. For example, if you are mounting a
remote directory on /nfs/apps/draw, /nfs/apps is the local_parent_directory specified
in the master map.
You can configure indirect automounts in the same indirect map only if their
local_parent_directory, as specified in the master map, is the same. For example, indirect
mounts with the local mount-points, /nfs/apps/draw and /nfs/apps/word, can be configured
in the same indirect map.
Following are sample lines from an AutoFS indirect map on the NFS client, sage. The hash (#)
symbol indicates a commented line.
# /etc/auto_desktop file
# local mount-point mount options remote server:directory
draw -nosuid thyme:/export/apps/draw
write -nosuid basil:/export/write
Figure 3-6 illustrates how AutoFS sets up indirect mounts.
Figure 3-6 How AutoFS Sets Up NFS Indirect Mounts
/
/nfs
/desktop
/write
/
/export
/write
NFS Server basil
NFS Client sage
NFS Mounts
/draw
/
/export
/apps
NFS Server thyme
/draw
/pics
/bin
/readme/wordtool
/pics
/bin
readme /wordtool
Using Environment Variables as Shortcuts in AutoFS Maps
This section describes how to use environment variables as shortcuts in AutoFS maps using an
example. You can create an environment variable by prefixing a dollar ($) to its name, or enclosing
it in braces ({}). You can use an environment variable in a direct or an indirect AutoFS map
anywhere except the first field, which specifies the local mount-point.
70 Configuring and Administering AutoFS