Example
of Automounting a User’s Home Directory |
 |
User Howard’s home directory is located on NFS server basil, where it is called /export/home/howard. Howard 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:
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-5 “Home Directories Automounted with Wildcards” illustrates this configuration.