NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering AutoFS
Chapter 2116
To Automount Users’ Home Directories
NOTE This configuration requires that users’ home directories be located under
the same directory on all systems in the network. On HP-UX release 9.x
or earlier, home directories are usually located under /users. On HP-UX
release 10.0 or later, home directories are usually located under /home.
For this reason, you should not set up this configuration until all of your
systems are running HP-UX release 10.0 or later.
1. Make sure the machines where users’ home directories are located
are set up as NFS servers and are exporting the home directories.
See “Configuring and Administering an NFS Server” on page 26.
2. In the /etc/passwd file on the NFS clients, or in the NIS passwd
map or NIS+ passwd table, configure the home directory of each user
as the NFS mount point where the user’s home directory will be
mounted. For example, if home directories are mounted under /home,
Claires home directory would be configured as /home/claire in the
/etc/passwd file.
3. If you are using local files for your automounter maps, create a file
called /etc/auto_home on the NFS clients, and add a line to it for
each user, like the following example. If you are using NIS to manage
your automounter maps, add the lines to the /etc/auto_home file on
the NIS master server.
sammy thyme:/export/home/& -nosuid
The ampersand (&) character takes the value of the user name in
each line. In the example above, user sammy’s home directory is
physically located on host thyme in /export/home/sammy.
4. If you are using local files for your automounter maps, add the
following line to the automounter master map, /etc/auto_master,
on the NFS clients:
/home /etc/auto_home
If you are using NIS to manage your automounter maps, add the line
to the /etc/auto_master file on the NIS master server.
5. If you are using NIS to manage your automounter maps, issue the
following commands on the NIS master server to rebuild the maps
and push them to slave servers: