From owner-freebsd-questions Wed Mar 19 7:26:24 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 41DCC37B401 for ; Wed, 19 Mar 2003 07:26:22 -0800 (PST) Received: from gatekeeper.microcell.ca (gatekeeper.microcell.ca [205.151.8.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B57B043F75 for ; Wed, 19 Mar 2003 07:26:20 -0800 (PST) (envelope-from SoHo@admin.fido.ca) Received: from mailserv.microcell.ca (mailserv.microcell.ca [10.2.0.87]) by gatekeeper.microcell.ca (Postfix) with ESMTP id 65C0816D26; Wed, 19 Mar 2003 10:26:19 -0500 (EST) Received: from 127.0.0.1 (localhost [127.0.0.1]) by mailserv.microcell.ca (Postfix) with SMTP id 0735216BCC; Wed, 19 Mar 2003 10:26:18 -0500 (EST) Received: from lenard.admin.fido.ca (lamus.fido.ca [10.0.1.45]) by mailserv.microcell.ca (Postfix) with ESMTP id 5EDA616BCC; Wed, 19 Mar 2003 10:26:17 -0500 (EST) Received: from magni.microcell.ca (magni.microcell.ca [10.6.22.102]) by lenard.admin.fido.ca (SMTP_Gateway) with ESMTP id 700E547D3C; Wed, 19 Mar 2003 10:26:16 -0500 (EST) Received: from magni.microcell.ca (localhost [127.0.0.1]) by magni.microcell.ca (8.12.6/8.12.7) with SMTP id h2JFP1fa064221; Wed, 19 Mar 2003 10:25:01 -0500 (EST) (envelope-from SoHo@admin.fido.ca) Date: Wed, 19 Mar 2003 10:25:01 -0500 From: Edmond Baroud To: Robert Kellner Cc: dnelson@allantgroup.com, freebsd-questions@FreeBSD.ORG Subject: Re: noone can change password with yppasswd Message-Id: <20030319102501.6e4bb90c.SoHo@admin.fido.ca> In-Reply-To: <20030319162257.319d7ff5.kellner.robert@gmx.net> References: <20030318172040.3491700f.kellner.robert@gmx.net> <20030318164358.GB2054@dan.emsphone.com> <20030319162257.319d7ff5.kellner.robert@gmx.net> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has been sanitized! X-Sanitizer-Rev: $Id: Sanitizer.pm,v 1.64 2002/10/22 16:37:04 bre Exp $ 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 are u running portmap? Ed. On Wed, 19 Mar 2003 16:22:57 +0100 Robert Kellner wrote: > 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? > > Robert > > On Tue, 18 Mar 2003 10:43:58 -0600 > Dan Nelson wrote: > > > In the last episode (Mar 18), Robert Kellner said: > > > I have a problem with passwords on FreeBSD 5.0: I am using NIS, but > > > neither root, nor the users can change their nis passwords with > > > yppasswd. Root is asked for the old password and when trying to set a > > > new one it fails. If a user tries to change his password, this will > > > not succeed either. > > > > > > here are some loggings: > > > root tries to change a password: > > > > > > Changing NIS password for testuser > > > Old Password: > > > New Password: > > > Retype New Password: > > > yppasswd: pam_chauthtok(): error in service module > > > > > > from /var/log/messages: > > > Mar 18 16:15:30 server yppasswd: in pam_sm_chauthtok(): yppasswd_local(): failed to connect to rpc.yppasswdd: server.mydomain.com: RPC: Program not registered > > > > I get this too; trying to change the password as a regular user from > > the NIS server fails with the same error. I have no workaround for > > this. > > > > > 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 :) > > > > -- > > Dan Nelson > > dnelson@allantgroup.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Edmond Baroud UNIX Systems Admin mailto:SoHo@admin.fido.ca Fingerprint 140F 5FD5 3FDD 45D9 226D 9602 8C3D EAFB 4E19 BEF9 "UNIX is very user friendly, it's just picky about who its friends are." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message