From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 29 11:40:32 2009 Return-Path: Delivered-To: hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0655110656AB; Mon, 29 Jun 2009 11:40:32 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75]) by mx1.freebsd.org (Postfix) with ESMTP id 8216B8FC14; Mon, 29 Jun 2009 11:40:31 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (localhost [127.0.0.1]) by svm.csie.ntu.edu.tw (8.14.3/8.14.3) with ESMTP id n5TBLiqL080024; Mon, 29 Jun 2009 19:21:44 +0800 (CST) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: (from rafan@localhost) by svm.csie.ntu.edu.tw (8.14.3/8.14.3/Submit) id n5TBLinR095167; Mon, 29 Jun 2009 19:21:44 +0800 (CST) (envelope-from rafan) Date: Mon, 29 Jun 2009 19:21:44 +0800 From: Rong-En Fan To: Kostik Belousov Message-ID: <20090629112144.GD27380@svm.csie.ntu.edu.tw> References: <20090629094923.GU2884@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="11Y7aswkeuHtSBEs" Content-Disposition: inline In-Reply-To: <20090629094923.GU2884@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.19 (2009-01-05) X-Mailman-Approved-At: Mon, 29 Jun 2009 12:03:07 +0000 Cc: Barkley Vowk , delphij@FreeBSD.ORG, rafan@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: rpc.yppasswdd fails in 7.2? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 11:40:32 -0000 --11Y7aswkeuHtSBEs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 29, 2009 at 12:49:23PM +0300, Kostik Belousov wrote: > On Fri, Jun 26, 2009 at 04:59:29PM -0600, Barkley Vowk wrote: > > I've got a 7.2 box acting as NIS master, running rpc.yppasswdd. When=20 > > remote users try to change their passwords they see: > >=20 > > testing1# passwd mytest > > Changing NIS password for mytest > > Old Password: > > New Password: > > Retype New Password: > > passwd: pam_chauthtok(): error in service module > >=20 > > On the server I get this in the logs: > > rpc.yppasswdd[36858]: pw_mkdb() failed > >=20 > > I tracked the error message down to line 620 of yppasswdd_server.c, whi= ch > > lead me to libutil/pw_util.c. > >=20 > > It looks like waitpid in mk_pwdb is returning the error "No child=20 > > processes", which then makes mk_pwdb return an error. But the child doe= s=20 > > run and do it's job as expected. If you edit yppasswdd_server.c to igno= re=20 > > the return value of mk_pwdb, passwords are changed as expected. >=20 > I think this is a side-effect of r184459/r186756, that made rpc.yppasswdd= to > ignore SIGCHLD. It only happens when the master uses /etc/master.passwd instead of /var/yp/master.passwd.=20 The zombie mentioned in the commit log was yppwupdate. Two possible soluutions are: we wait until the push is succeed or we use a double fork. Personally, I prefer the former approach. Regards, Rong-En Fan --11Y7aswkeuHtSBEs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkpIo8cACgkQ144QkYb9jGhHNgCgikckvIMIi0guUQ6Vs3cMxRoO BgYAoIZ21t0k5lSynquMALK6k5Xgv7Wz =z7s/ -----END PGP SIGNATURE----- --11Y7aswkeuHtSBEs--