|
|
Use ypinit to build a fresh set of NIS maps on the master server in the following way:
ypinit prompts for the name of the NIS domain.
ypinit prompts for a list of other hosts that are to become NIS servers.
ypinit asks whether you want the procedure to terminate at the first non-fatal error or to continue despite non-fatal errors.
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.