From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 29 10:02:18 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 DA1441065678; Mon, 29 Jun 2009 10:02:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 524B58FC13; Mon, 29 Jun 2009 10:02:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n5T9nNdR020252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jun 2009 12:49:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n5T9nNnq001173; Mon, 29 Jun 2009 12:49:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n5T9nNFM001172; Mon, 29 Jun 2009 12:49:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 29 Jun 2009 12:49:23 +0300 From: Kostik Belousov To: Barkley Vowk Message-ID: <20090629094923.GU2884@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EzyTiZo8w1pFn3ee" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.1 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: hackers@freebsd.org, delphij@freebsd.org, rafan@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 10:02:19 -0000 --EzyTiZo8w1pFn3ee Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, which > 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 does= =20 > run and do it's job as expected. If you edit yppasswdd_server.c to ignore= =20 > the return value of mk_pwdb, passwords are changed as expected. I think this is a side-effect of r184459/r186756, that made rpc.yppasswdd to ignore SIGCHLD. --EzyTiZo8w1pFn3ee Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkpIjiIACgkQC3+MBN1Mb4hkDwCfbwZN8ules/o3b8fv7V28bHf0 pUUAn2Rwuf0WogYhBDeij1Axm6KH8hc+ =W9lh -----END PGP SIGNATURE----- --EzyTiZo8w1pFn3ee--