DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Setting up NIS

Building the maps

Use ypinit to build a fresh set of NIS maps on the master server in the following way:

  1. Log in to the master server as NIS administrator.

  2. Enter:

    /usr/sbin/ypinit -m

    ypinit prompts for the name of the NIS domain.

  3. Enter the name of the domain to be serviced by the master server.

    ypinit prompts for a list of other hosts that are to become NIS servers.

  4. Enter the name of the server you are working on and the names of all other NIS servers.

    ypinit asks whether you want the procedure to terminate at the first non-fatal error or to continue despite non-fatal errors.

  5. If you choose the first option, ypinit exits at the first problem; you can then fix the problem and restart ypinit. This is recommended if you are running ypinit for the first time. If you prefer to continue, you can try to fix by hand all problems that may occur, then restart ypinit.

  6. Once ypinit has constructed the list of servers, it calls ypbuild. This program uses the instructions contained in the Makefile (either the default one or the one you modified) located in /var/yp. It cleans all comment lines from the files you designated and runs makedbm on them, creating the appropriate pairs of maps and establishing the name of the master server for each map.

    If the maps being pushed by the Makefile correspond to a domain other than the one returned by the command domainname on the master server, make sure they are pushed to the correct domain by starting ypbuild in the ypinit shell script with the proper identification of the variable DOM. For example,

    /var/yp/ypbuild DOM=correct_domain passwd

    will push the password map to the intended domain instead of the domain to which the master belongs.

Once the maps are built, ypinit starts up NIS on the master server.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004