chpasswd -S does not operate according to documented behaviour
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
# apt-cache policy passwd
passwd:
Installed: 1:4.1.4.
Candidate: 1:4.1.4.
Version table:
*** 1:4.1.4.
500 http://
100 /var/lib/
According to the chpasswd(8) man page this should be the behaviour of chpasswd with the -S option.
-S, --stdout
Report encrypted passwords to stdout instead of updating password
file.
However in this version of the package with -S or --stdout the encrypted password is not echoed to the console and the password file is updated.
Test case:
# grep ^user /etc/shadow ; echo user:newpass | chpasswd -S ; grep ^user /etc/shadow
user:$6$
user:$6$
Status changed to 'Confirmed' because the bug affects multiple users.