From nobody@FreeBSD.ORG  Sun Oct 29 16:57:00 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id AA2A337B4D7; Sun, 29 Oct 2000 16:57:00 -0800 (PST)
Message-Id: <20001030005700.AA2A337B4D7@hub.freebsd.org>
Date: Sun, 29 Oct 2000 16:57:00 -0800 (PST)
From: jywang@pixart.com.tw
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Solution of "passwd" and "cannot set password cipher" in 4.1.1
X-Send-Pr-Version: www-1.0

>Number:         22404
>Category:       bin
>Synopsis:       Solution of "passwd" and "cannot set password cipher" in 4.1.1
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 29 17:00:01 PST 2000
>Closed-Date:    Thu Nov 30 12:33:20 PST 2000
>Last-Modified:  Thu Nov 30 12:33:47 PST 2000
>Originator:     J.Y.Wang.
>Release:        4.1.1-STABLE
>Organization:
PixArt Imaging Inc.
>Environment:
$ uname -a
FreeBSD proxy.pixart.com.tw 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Sat Oct 28 03:02:26 CST 2000     root@proxy.pixart.com.tw:/
usr/obj/usr/src/sys/JYWANG  i386
>Description:
Bugs when you just update your FreeBSD 4.1-STABLE box to FreeBSD 4.1.1-STABLE. You cannot change your passwd and got a "cannot set password cipher" message.
>How-To-Repeat:
# passwd foo
Changing local password for foo.
New password:
Retype new password:
passwd: cannot set password cipher: Undefined error: 0
passwd: /etc/master.passwd: unchanged
>Fix:
You must treat 4.1.1-STABLE a brand-new version from 4.1-STABLE. That is, just like /usr/src/UPDATING says, you must do a

make buildworld
make buildkernel KERNEL=YOUR_KERNEL_HERE
make installkernel KERNEL=YOUR_KERNEL_HERE
reboot  (in single user) [1]
make installworld
mergemaster
reboot

Then youll solve this problem on your own self. I wrote three scripts for "at" use

foo.stg1:
cd /usr/src
make buildworld
make buildkernel KERNEL=GENERIC
make installworld KERNEL=GENERIC
reboot

foo.stg2:
cd /usr/src
make buildkernel KERNEL=JYWANG
make installkernel KERNEL=JYWANG
mv /kernel.old /kernel.GENERIC
reboot

foo.stg3:
cd /usr/src
make installworld
mergemaster
reboot

After three "at" all the night, all "passwd" problems were gone!

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: alfred 
State-Changed-When: Thu Nov 30 12:33:20 PST 2000 
State-Changed-Why:  
User solved own problem through "agressive" updating. :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22404 
>Unformatted:
