From owner-freebsd-questions Wed Mar 19 8:59: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45E0637B401 for ; Wed, 19 Mar 2003 08:59:02 -0800 (PST) Received: from btcips73x6.cip.uni-bayreuth.de (btcips73x6.cip.uni-bayreuth.de [132.180.237.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E82843F93 for ; Wed, 19 Mar 2003 08:59:01 -0800 (PST) (envelope-from kellner.robert@gmx.net) Received: from localhost ([127.0.0.1] helo=btcips73x6 ident=foobar) by btcips73x6.cip.uni-bayreuth.de with smtp (Exim 3.36 #1 (Debian)) id 18vgtv-0002Yh-00; Wed, 19 Mar 2003 17:58:51 +0100 Date: Wed, 19 Mar 2003 17:58:51 +0100 From: Robert Kellner To: Dan Nelson Cc: freebsd-mailinglist Subject: Re: noone can change password with yppasswd Message-Id: <20030319175851.323cb9d6.kellner.robert@gmx.net> In-Reply-To: <20030319153947.GF91803@dan.emsphone.com> References: <20030318172040.3491700f.kellner.robert@gmx.net> <20030318164358.GB2054@dan.emsphone.com> <20030319162257.319d7ff5.kellner.robert@gmx.net> <20030319153947.GF91803@dan.emsphone.com> Organization: Universitaet Bayreuth, Department of Physics X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 19 Mar 2003 09:39:48 -0600 Dan Nelson wrote: > In the last episode (Mar 19), Robert Kellner said: > > Dan Nelson wrote: > > > In the last episode (Mar 18), Robert Kellner said: > > > > a user tries to change a password: > > > > > > > > Changing NIS account information for testuser on server.mydomain.com. > > > > Changing NIS password for testuser on server.mydomain.com. > > > > Please enter new password: > > > > Please retype new password: > > > > Error while changing the NIS password. > > > > The NIS password has not been changed on server.mydomain.com. > > > > > > > > and from /var/logmessages: > > > > Mar 18 16:17:24 btcips73x1 rpc.yppasswdd[2320]: pw_mkdb() failed > > > > > > Are you exporting /etc/master.passwd via NIS, or are you exporting > > > /var/yp/master.passwd? There are a couple bugs in rpc.yppasswdd when > > > you are not exporting /etc/master.passwd. Try the attached patch and > > > see if it helps. Make backups of /etc/master.passwd and > > > /var/yp/master.passwd just in case :) > > > > Thanks a lot, I applied that patch, > > > > but that did not seem to work. I get the same errors. > > Could this have something to do with pam? > > rpc.yppasswdd doesn't use pam at all, so I doubt it. > > So you are using /etc/master.passwd as your NIS passwd file, then? Try > commenting out the daemon(0,0) call in yppasswdd_main.c, and run it > again. If pwd_mkdb is failing, you should see an error message on > stderr. I am not using /etc/master.passwd as NIS passwd, I have a sepearte master.passwd in /var/yp I commented out the daemon(0,0) call and I got the following (as root): from yppasswd:bash-2.05b# yppasswd testuser Changing NIS password for testuser Old Password: New Password: Retype New Password: yppasswd: pam_chauthtok(): error in service module /var/log/messages:Mar 19 16:58:03 btcips73x1 yppasswd: in pam_sm_chauthtok(): yppasswd_local(): failed to connect to rpc.yppasswdd: btcips73x1.cip.uni-bayreuth.de: RPC: Program not registered To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message