Bug 1686436
| Summary: | passwd -S report is incorrect when the user's /etc/passwd entry does not contain 'x' in the password hash field | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | amitkuma | |
| Component: | passwd | Assignee: | Jiri Kucera <jkucera> | |
| Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 7.6 | CC: | amitkuma, daniele, djez, jkucera, ovasik, tmraz | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | passwd-0.79-6.el7 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1740168 (view as bug list) | Environment: | ||
| Last Closed: | 2020-03-31 19:45:42 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1716965, 1740168 | |||
|
Description
amitkuma
2019-03-07 13:08:39 UTC
Hi,
Let me add,
passwd(1)
"""
-S
This will output a short information about the status of the password for a given account. Available to root user only.
"""
We expect therefore that also -S argument will provide relevant information of lack of password.
test ~ # grep ^root /etc/passwd
root::0:0:root:/root:/bin/bash
test ~ # passwd -S root
root PS 2017-12-09 0 99999 7 -1 (Password set, SHA512 crypt.)
usgnutl6fk5 ~ # chage -l root
Last password change : Dec 09, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
test ~ #
@Tomas @Jiri Kucera would it be possible to set up a call with Customer [daniele]?
Customer's timezone is {Europe/Paris}
This is a real bug in passwd as passwd -S should print correct information and not false one. Also the password setting as in the item 4 in the description not having effect is a real bug in PAM and should be fixed. Amit, please open a new bug against PAM as PAM is the culprit here. Dear Tomas, ||3. passwd -S shows incorrect information - this is bug, should be fixed - we can use this bz report for that fix As you stated I would not be opening bug for 'passwd -S' Yes, I think this bug can be used for the passwd -S issue. dear tomas, do you require any information from me? No, I do not. Please note I am not the maintainer of passwd. It is now on Jiri. Hello, Any updates here? Fixed in passwd-0.79-6.el7. Hello, What about RHBA of this particular bug in RHEL-8? a. Do we need to clone this bugzilla for RHEL-8. Hello, thanks for the idea. I cloned this bugzilla for RHEL-8 (bz#1740168) and also filed bugzilla for Fedora (bz#1740166). Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1058 |