NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 81
Setting up the NFS Client
1. 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 directory/servername/username, where servername is the
name of the machine where the user’s home directory is physically
located. For example, if home directories are mounted under /home
on NFS client thyme, Claire’s home directory, which is located on
server sage, would be configured as /home/sage/claire in the
/etc/passwd file on client thyme.
2. Create a directory of the form directory/servername on the NFS
clients for each NFS server where users’ home directories are
located. For example, if users’ home directories are located on servers
sage and basil, and they will be automounted under the directory
/home on host thyme, you would create the directories /home/sage
and /home/basil on host thyme.
3. If you are using local files for your automounter maps, add the
following line to the automounter master map (usually called
/etc/auto_master) on the NFS clients. If you are using NIS to
manage your automounter maps, add the line to the master map on
the NIS master server.
local_parent_directory -passwd [mount_options]
The local_parent_directory is the directory under which users’
home directories will be mounted. This directory must be different
from the directory in the user’s passwd entry. For example, you might
use homes as the directory, as in the following example:
/homes -passwd -nosuid
If you are using NIS+ to manage your automounter maps, issue the
following command to add an entry to the NIS+ auto_master table:
nistbladm -a key=”/homes” value=”-passwd -nosuid” \
auto_master.org_dir
4. If you are using NIS to manage your automounter maps, issue the
following commands on the NIS master server to rebuild the master
map and push it to slave servers:
cd /var/yp
/usr/ccs/bin/make auto.master