NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Master Server
Chapter 4164
To Modify an NIS Map
1. Log in as root to the NIS master server.
2. Make your changes to the source file for the NIS map. For example, if
you want to change the NIS hosts map, make your changes to the
/etc/hosts file.
3. Issue the following commands to generate the map and push it to the
slave servers:
cd /var/yp
/usr/ccs/bin/make mapname
If your slave servers are not up and running yet, run the make
command with the NOPUSH flag set to 1:
cd /var/yp
/usr/ccs/bin/make NOPUSH=1 mapname
This procedure works for all NIS maps except the ypservers map, which
has no source file. For instructions on modifying the ypservers map, see
“To Add a Slave Server to Your NIS Domain” on page 168 or “To Remove
a Slave Server from Your NIS Domain” on page 169.
If you make changes to the passwd, group, or hosts maps, regenerate
the netid.byname map. The netid.byname map is a mapping of users to
groups, where 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 and /etc/group files.
For more information, see the following man pages: make(1), ypmake(1M),
yppush(1M), and ypxfr(1M).