From owner-freebsd-current@FreeBSD.ORG Wed Apr 16 12:07:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20C1937B401 for ; Wed, 16 Apr 2003 12:07:41 -0700 (PDT) Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEA743FBF for ; Wed, 16 Apr 2003 12:07:39 -0700 (PDT) (envelope-from gjohnson@srrc.ars.usda.gov) Received: from node1.cluster.srrc.usda.gov (localhost [127.0.0.1]) by symbion.srrc.usda.gov (8.12.9/8.12.9) with ESMTP id h3GJ7JcY001385; Wed, 16 Apr 2003 14:07:19 -0500 (CDT) (envelope-from glenn@node1.cluster.srrc.usda.gov) Received: (from glenn@localhost)h3GJ7G7x001384; Wed, 16 Apr 2003 14:07:16 -0500 (CDT) Date: Wed, 16 Apr 2003 14:07:16 -0500 From: Glenn Johnson To: Dan Nelson Message-ID: <20030416190716.GA1256@node1.cluster.srrc.usda.gov> Mail-Followup-To: Glenn Johnson , Dan Nelson , current@FreeBSD.ORG References: <20030416172105.GA73206@node1.cluster.srrc.usda.gov> <20030416183147.GB7923@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030416183147.GB7923@dan.emsphone.com> User-Agent: Mutt/1.4.1i cc: current@FreeBSD.ORG Subject: Re: can not change NIS password X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 19:07:41 -0000 On Wed, Apr 16, 2003 at 01:31:47PM -0500, Dan Nelson wrote: > In the last episode (Apr 16), Glenn Johnson said: > > > User passwords can not be changed if they are served by NIS with > > -current: > > > > FreeBSD 5.0-CURRENT #3: Tue Apr 15 11:30:59 CDT 2003 root@node1.cluster.srrc.usda.gov:/usr/obj/usr/src/sys/CLUSTER-FW > > > > When trying to change a password I get the following: > > > > Apr 16 12:16:38 node1 passwd: in pam_sm_chauthtok(): yppasswd_remote(): NIS password update failed > > > > If I place account information into /etc/master.passwd instead of > > the NIS master.passwd, then I can successfully change the password. > > Try the attached patch; I really need to send-pr this :) The current > code assumes you always export /etc/master.passwd. Your patch fixes the problem. Thanks. > There is still a bug in there somewhere that prevents you from > changing an NIS password when logged into the NIS master itself, but > at least there's a workaround for that (log into a client to change > the password). I presume you mean when the NIS master is not also a client. In my case, the machine that is the NIS master is also an NIS client. I was able to change the password on that machine after applying your patch. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@srrc.ars.usda.gov