NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 85
The automounter reads the auto_home to find out how to mount
Howard’s home directory. The subdirectory basil is not listed in the
auto_home map, but the asterisk (*) in the following line matches any
subdirectory:
* &:/home/& -nosuid
So the automounter substitutes basil for all wildcard characters in that
line:
basil basil:/home/basil
The automounter mounts /home/basil from server basil to the local
mount point /home/basil on the NFS client. All the home directories on
server basil are located under /home/basil. Figure 2-10 illustrates this
configuration:
Figure 2-10 Home Directories Automounted with Wildcards
To Automount Multiple Directories Simultaneously
(Hierarchical Mounts)
Use an editor to create an entry with the following format in a direct
or indirect automounter map. (Create the map, if necessary, and add
it to the automounter master map.)
local_dir /local_subdirectory [-options]
server:remote_directory \
/local_subdirectory [-options]
server:remote_directory \ . . .
The backslash (\) characters tell the automounter to ignore the line
breaks, so this entry is effectively all one line. Map entries with this
format cause all the remote directories on the line to be mounted at the
NFS server "basil" local NFS client
/
/home
/basil
/howard
/james
/
/home
/basil
/howard
/james