Example of Automounting a User’s Home Directory |
 |
User Howard’s home directory is located on the NFS server, basil, where it is called /export/home/howard. Each client in the network has the following entry in the /etc/passwd file on all the systems in the network:
howard:*:700:70:Howard:/home/howard:/usr/bin/ksh |
When Howard logs in to any NFS client, AutoFS recognizes /home as an AutoFS mount-point, because it is configured
in the master map, as follows:
AutoFS reads the auto_home map
to find out how to mount Howard’s home directory. It finds the
following line:
howard basil:/export/home/& -nosuid |
AutoFS substitutes howard for
the ampersand (&) character in that line:
howard basil:/export/home/howard -nosuid |
AutoFS mounts /export/home/howard from server basil to the local
mount-point /home/howard on the NFS
client. Figure 3-7 illustrates
this configuration.