Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1666005

Summary: Changing root password as root should not ask for old password
Product: Red Hat Enterprise Linux 8 Reporter: Ulhas Surse <usurse>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 8.0Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:03: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: 1678933    
Bug Blocks:    
Attachments:
Description Flags
screenshot when changing root password none

Description Ulhas Surse 2019-01-14 16:07:26 UTC
Description of problem:
While changing the password of root from cockpit interface, the old password filed is not considered or checked and setting the new password only. This is observed multiple time and sometimes only, the setting will fail but there is no message in the cockpit that old password is not correct. 

There should be some way to check an old password and display a message if it's incorrect.   

Version-Release number of selected component (if applicable):
RHEL8
cockpit-system-184-1.el8.noarch


How reproducible:
Always

Steps to Reproduce:
1. Change the password from the cockpit
2. type anything in an old password field.
3. change password

Actual results:
The password is getting changed even if an old password is any string

Expected results:
- An old password should be checked.
- There should be message/ WARN if an old pass does not match. 

Additional info:

Comment 1 Martin Pitt 2019-01-15 11:52:17 UTC
Created attachment 1520747 [details]
screenshot when changing root password

I tried to reproduce this. When trying to change root's password, it doesn't ask for the old password at all (see attached screenshot). This coincides with changing it on the command line:

# passwd root
Changing password for user root.
New password:

Comment 2 Martin Pitt 2019-01-15 11:55:19 UTC
Oh, got it -- this happens if you log into cockpit *as root*, as then this goes through the "change password of your own account" logic. But the command line does not ask for your own password if you change root's password as root.

So this is just a cosmetical issue, it shouldn't display the "Old password" input line in this case.

Comment 8 errata-xmlrpc 2019-11-05 22:03:19 UTC
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-2019:3518