Bug 16272

Summary: passwd(1) w/ NIS broken
Product: Base System Reporter: Daniel T. Hagan <dhagan>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: admins
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   

Description Daniel T. Hagan 2000-01-21 20:00:03 UTC
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.

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.
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
-----
Comment 1 John Baldwin freebsd_committer freebsd_triage 2000-01-21 20:51:04 UTC
State Changed
From-To: open->closed

This problem existed because of general stupidity on my part.  Thanks to wpaul 
for pointing this out and finding the source of this problem.