Bug 1264925

Summary: '/usr/bin/userpasswd' shows invalid password error when it fails to change password due to minimum password age requirement
Product: Red Hat Enterprise Linux 6 Reporter: Siteshwar Vashisht <svashisht>
Component: usermodeAssignee: Miloslav Trmač <mitr>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: medium    
Version: 6.7CC: cww, ngalvin, pkis, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-29 19:01:19 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: 1172231, 1269194    

Description Siteshwar Vashisht 2015-09-21 13:22:54 UTC
Description of problem:
'/usr/bin/userpasswd' shows invalid password error when it fails to change password due to minimum password age requirement

Version-Release number of selected component (if applicable):
usermode-1.102-3.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create a new user account with id 'test'.
2. Set minimum number of days between password changes by executing :

    chage --mindays=1 test

3. Execute '/usr/bin/userpasswd' and enter password for 'test' user.

Actual results:
Two error messages are displayed :

1. You must wait longer to change your password.
2. The password you typed is invalid. Please try again.

Expected results:
Only one error message should be displayed :

1. You must wait longer to change your password.

Comment 1 Miloslav Trmač 2015-10-13 12:06:00 UTC
*** Bug 1264924 has been marked as a duplicate of this bug. ***