ypinit -s yields errors (summary)

From: Kim Culhan (kimc@w8hd.org)
Date: Fri Sep 02 1994 - 16:47:44 CDT


The origonal post read in part:

On Thu, 25 Aug 1994, Kim Culhan wrote:

> When configuring an NIS database for a slave machine, I get these
> errors for the transfer:
>
> Transferring netid.byname...
> w8hd: RPC: Program not registered
> (info) w8hd w8hd.org netid.byname ypxfrd getdbm failed (reason = -1) --
> using ypxfr

[repeated for each database]

Thanks to everyone who responded with the word that ypxfrd was not running
on the master.

Here is the complete response from Mark Almeida of PacBell:

I experienced the same problem myself the other day, and here's how I
solved it (your mileage may vary):

        1) On the new slave, manually start ypxfrd, then
           ypinit -s <master name>

        2) On the slave, kill ypbind. Then remove /var/yp/binding/*

        3) Now, bind the slave to itself by ypbind -ypsetme
           (or ypbind -s -ypsetme if you use shadow passwords)

           ypset <name of slave>

           Verify that the slave is now bound to itself by ypwhich

        3) Back on the master, cd to /var/yp and update the ypservers map

           ypcat -k > /tmp/ypservers

           edit /tmp/ypservers and add your new slave

           cat /tmp/ypservers | makedbm - /var/yp/`domainname`/ypservers

           Verify that it works by changing one of the maps and doing a
           make

regards
kim culhan

--
kimc@w8hd.org



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:09 CDT