Bug 22404

Summary: Solution of "passwd" and "cannot set password cipher" in 4.1.1
Product: Base System Reporter: jywang <jywang>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   

Description jywang 2000-10-30 01:00:01 UTC
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.

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 you¡¦ll 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!
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
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 2000-11-30 20:33:20 UTC
State Changed
From-To: open->closed

User solved own problem through "agressive" updating. :)