Setting up NIS

Modifying the default maps

Perform the following procedure for updating all default maps:

  1. Become NIS administrator on the master server. (Always modify NIS maps on the master server.)

  2. Edit the input file for the map you want to change, whether that file resides in /etc or in some other directory of your choice, such as /var/yp, as shown here.

  3. Enter:

    cd /var/yp
    ./ypbuild mapname DIR=/var/yp

    where mapname is the target name of the map in the Makefile in /var/yp. The ypbuild command will then update your map according to the changes you made in its corresponding file. It will also propagate it among the servers (see ``Propagating an NIS map'').


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''.

Note that making the map does not propagate it. For instructions, see ``Propagating an NIS map''.


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999