chpasswd can't change password with libpam-passwdqc enabled
Bug #1904166 reported by
EOLE team
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello.
We are unable to change user password using chpasswd with libpam-passwdqc, it seems to miss detect old password:
root@server:~# echo 'root:hearth=
[…]
Weak password: is the same as the old one.
Try again.
root@server:~# echo $?
1
I tried the following to make sure the old password was not the same:
root@server:~# echo 'root:foo' | chpasswd -c SHA512
root@server:~# echo 'root:hearth=
[…]
Weak password: is the same as the old one.
Try again.
root@server:~# echo $?
1
To post a comment you must log in.
It may be due to the libpam-passwdqc configuration using ask_oldauthtok and similar=deny.
It was working fine on Bionic but fails with Focal.