From dhagan@cslab.vt.edu  Fri Jan 21 11:42:42 2000
Return-Path: <dhagan@cslab.vt.edu>
Received: from alsatian.cslab.vt.edu (alsatian.cslab.vt.edu [198.82.184.21])
	by hub.freebsd.org (Postfix) with ESMTP id 64BCA14E88
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 21 Jan 2000 11:42:39 -0800 (PST)
	(envelope-from dhagan@cslab.vt.edu)
Received: from snowcow.cslab.vt.edu (root@snowcow.cslab.vt.edu [198.82.184.27])
	by alsatian.cslab.vt.edu (8.9.3/8.9.3) with ESMTP id OAA16413;
	Fri, 21 Jan 2000 14:42:36 -0500 (EST)
	(envelope-from dhagan@snowcow.cslab.vt.edu)
Received: (from dhagan@localhost)
	by snowcow.cslab.vt.edu (8.9.3/8.9.3) id OAA49593;
	Fri, 21 Jan 2000 14:41:52 -0500 (EST)
	(envelope-from dhagan)
Message-Id: <200001211941.OAA49593@snowcow.cslab.vt.edu>
Date: Fri, 21 Jan 2000 14:41:52 -0500 (EST)
From: "Daniel T. Hagan" <dhagan@cslab.vt.edu>
Reply-To: dhagan@cslab.vt.edu
To: FreeBSD-gnats-submit@freebsd.org
Cc: admins@cslab.vt.edu
Subject: passwd(1) w/ NIS broken
X-Send-Pr-Version: 3.2

>Number:         16272
>Category:       bin
>Synopsis:       passwd(1) w/ NIS broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 21 12:00:03 PST 2000
>Closed-Date:    Fri Jan 21 12:51:04 PST 2000
>Last-Modified:  Fri Jan 21 12:52:57 PST 2000
>Originator:     Daniel T. Hagan
>Release:        FreeBSD 3.2-STABLE
>Organization:
Virginia Tech
>Environment:

client:
FreeBSD cantaloupe.cslab.vt.edu 3.2-STABLE FreeBSD 3.2-STABLE #2: \
Wed Jun 23 13:41:26 EDT 1999     \
root@snowcow.cslab.vt.edu:/usr/source/src/sys/compile/PIZZA_BOX  i386
$Id: passwd.c,v 1.15 1998/10/09 06:38:33 markm Exp $

server:
FreeBSD snowcow.cslab.vt.edu 3.4-RELEASE FreeBSD 3.4-RELEASE #5: \
Fri Jan 14 14:30:06 EST 2000     \
root@snowcow.cslab.vt.edu:/usr/source/src/sys/compile/SNOWCOW  i386

>Description:

NIS user imported to client from server via '+:::::::::' in /etc/master.passwd

User runs passwd(1) and instead of changing NIS password, user info gets
pasted into local /etc/master.passwd.

There are some clients which report as 3.2-STABLE #1 (compiled Jun 6th) and 
they don't exhibit this behavior.  I'm not sure if this is a configuration 
problem or what.  I've browsed passwd.c very briefly, but I don't have time 
to sit down and get real familiar with it right now.

>How-To-Repeat:

setup as above, login as NIS user:
% passwd
Changing local password for dhagan.
Old password:
New password:
Retype new password:
passwd: updating the database...
passwd: done

/etc/master.passwd now contains the following:
-----
[snip]
+:::::::::
dhagan:[new passwd]:8232:200::0:0:Daniel T. Hagan:/home/major/dhagan:/bin/tcsh
-----


>Fix:

	I'd be willing to try any suggestions or look at some code
	if someone comes up with a hunch as to what is wrong.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Fri Jan 21 12:51:04 PST 2000 
State-Changed-Why:  
This problem existed because of general stupidity on my part.  Thanks to wpaul 
for pointing this out and finding the source of this problem. 
>Unformatted:
