Updating the default NIS maps
Perform the following procedure when updating default maps:
-
Become NIS administrator on the master server.
(Always modify NIS maps on the master server.)
-
Edit the input file for the map you want to change.
In this example, it is assumed that the file resides in /etc.
-
Enter:
cd /var/yp
./ypbuild [mapname]
mapname is the target name of the map
named in /var/yp/Makefile.
Omit mapname to rebuild all default maps whose input files
have been updated since the maps were last built.
The
ypbuild(1Mnis)
command updates the map with the
changes that you made to its input file.
It also calls
yppush(1Mnis)
to propagate the map among the slave servers.
NOTE:
Do not use this procedure with the publickey map.
Instead, use the newkey and chkey commands,
as described in
``Preparing NIS databases on the master server''.
Simply making the dbm database for a map
does not propagate it.
For more information, see
``Propagating an NIS map''.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004