That seems to have fixed it.  I changed that entry in /etc/pam.d/common-
password like this:

#password       [success=1 default=ignore]      pam_unix.so obscure sha512
password        required                        pam_unix.so obscure sha512


And now it throws out a better error message for both root and regular users 
when they fail changing their passwords:

ROOT:
[EMAIL PROTECTED]:/etc/pam.d# passwd
Enter new UNIX password: 
Retype new UNIX password: 
Sorry, passwords do not match
passwd: Authentication information cannot be recovered
passwd: password unchanged
[EMAIL PROTECTED]:/etc/pam.d#

USERX:
[EMAIL PROTECTED]:/$ passwd
Changing password for userX.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 
Sorry, passwords do not match
passwd: Authentication information cannot be recovered
passwd: password unchanged
[EMAIL PROTECTED]:/$

-- 
passwd - passwords do not match but updated successfully
https://bugs.launchpad.net/bugs/272232
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to