Network Information Service (NIS) B.11.31.04 Administrator's Guide

2. Modify the following source files of the NIS map:
/etc/hosts
/etc/passwd
/etc/group
For example, if you want to modify the NIS hosts map, modify the /etc/hosts
file.
3. Generate the map and push it to the slave servers:
# cd /var/yp
# /usr/ccs/bin/make mapname
If the slave servers are not running, enter the following command with the NOPUSH
flag set to 1:
# cd /var/yp
# /usr/ccs/bin/make NOPUSH=1 mapname
This procedure is effective for all NIS maps except the ypservers map, which does
not have a source file. For information about modifying the ypservers map, see
Adding a Slave Server to the NIS Domain” (page 38) or “Removing a Slave Server
from the NIS Domain” (page 39).
4. If you modify the passwd, group, or hosts map, you must regenerate the netid.byname
map using the make hosts and make netid commands.
It is not mandatory to use the make hosts command before rebuilding the netid
maps.
The netid.byname map maps the users to groups, where the entry for each user is followed
by a list of all the groups to which the user belongs. The netid.byname map is generated
from the /etc/passwd, /etc/group, and /etc/hosts files.
For more information, see make(1), ypmake(1M), yppush(1M), and ypxfr(1M).
Adding an AutoFS Map to the NIS Domain
AutoFS mounts directories automatically when a request is made to access them It
unmounts directories automatically if the processes remain idle for more than 10
minutes. By default, an NIS domain that you set up contains an auto.master AutoFS
map file.
To add an AutoFS map to the NIS domain, for example auto.tools, complete the following
steps:
1. Log in to the NIS master server as a superuser.
2. Modify the /usr/sbin/ypinit script using a text editor, to add the AutoFS map
to the MASTER_MAPS list variable:
MASTER_MAPS=group.bygid group.byname \
hosts.byaddr hosts.byname netgroup netgroup.byhost \
netgroup.byuser networks.byaddr networks.byname passwd.byname \
36 Configuring and Administering an NIS Master Server