FS#16802 - [shadow] newusers and chpasswd don't create passwd field in /etc/shadow

Attached to Project: Arch Linux
Opened by roberto porcaro (porcaror) - Friday, 23 October 2009, 13:50 GMT
Last edited by Ionut Biru (wonder) - Saturday, 29 May 2010, 10:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
When I use the chpasswd or newusers command, they create the account but they donn't create the password filed in /etc/shadow (they put only a "!" instead)

Additional info:
* package version(s) shadow 4.1.4.2-1
* config and/or log files etc.


Steps to reproduce:
for example
echo "pippo:pippo" | chpasswd
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 29 May 2010, 10:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  shadow 4.1.4.2-3
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 23 October 2009, 15:38 GMT
  • Field changed: Summary (newusers and chpasswd don't create passwd field in /etc/shadow → [shadow] newusers and chpasswd don't create passwd field in /etc/shadow)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Aaron Griffin (phrakture), Thomas Bächler (brain0)
Looks like a default config issue with PAM, if you change your password entry in /etc/pam.d/chpasswd with "password required pam_unix.so md5 shadow" will works fine. Same is applied to newusers.
Comment by roberto porcaro (porcaror) - Monday, 26 October 2009, 16:00 GMT
You are right. Thank you. Anyway in previous version it worked without making any change to /etc/pam.d/{newusers,chpasswd}.
Comment by Ionut Biru (wonder) - Monday, 25 January 2010, 21:31 GMT
what's the proper fix here? i just noticed i can't change the password from openvz with an arch container.
do we add those lines in chpasswd?
Comment by Paul Mattal (paul) - Saturday, 06 March 2010, 21:29 GMT
I just added tpowa, as it sounds like this suggests a change to the PAM defaults is the right move.

Any reason not to make this change?
Comment by Martina Engboren (akravel) - Friday, 14 May 2010, 05:10 GMT
The fix suggested by djgera works for me, cheers!
-> change your password entry in /etc/pam.d/chpasswd to "password required pam_unix.so md5 shadow"
Comment by Ionut Biru (wonder) - Friday, 28 May 2010, 17:31 GMT
i've pushed a version in testing that fixes this issue. please test and report back

Loading...