Subject: Re: rpc.yppasswdd problems
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 06/11/2002 11:38:01
On Tue, Jun 11, 2002 at 12:32:34PM +0300, Martti Kuparinen wrote:
> On Tue, 11 Jun 2002, Manuel Bouyer wrote:
> 
> > Maybe try to recompile without calling daemon() and see if you get
> > messages on stderr.
> 
> Now we are getting somewhere :-)
> 
> ROOT sl:/usr/src/usr.sbin/rpc.yppasswdd> /usr/sbin/rpc.yppasswdd -d /var/yp
> pwd_mkdb: /var/yp/etc/pwd.db: No such file or directory
> rpc.yppasswdd: pw_mkdb failed
> 
> ROOT sl:/usr/src/usr.sbin/rpc.yppasswdd> l /var/yp/etc/
> total 4
> -rw-r--r--  1 root  wheel  153 May 17 11:22 group
> -rw-r--r--  1 root  wheel  108 May 17 11:22 hosts
> -rw-------  1 root  wheel  601 May 17 09:37 master.passwd
> -rw-r--r--  1 root  wheel  435 May 17 09:37 passwd

OK, you need to run pwd_mkdb -d /var/yp /var/yp/etc/master.passwd
to create the *.db . rpc.yppasswdd doesn't regenerate the whole db, only
update the line that changed.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--