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.
Description of problem:
On a new redhat 7.4, passwd –S to check the status of a user generates the following event :
node=xxxxx type=USER_CHAUTHTOK msg=audit(28/08/17 16:34:18.632:54145) : pid=31134 uid=root auid=xxxxx ses=3866 msg='op=password status displayed for user id=ftp exe=/usr/bin/passwd hostname= xxxxx addr=? terminal=pts/1 res=success'
Version-Release number of selected component (if applicable):
[root@rhel7u4-1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@rhel7u4-1 ~]# rpm -q audit
audit-2.7.6-3.el7.x86_64
How reproducible:
[root@rhel7u4-1 ~]# passwd -S jack
jack LK 2017-09-06 0 99999 7 -1 (Password locked.)
[root@rhel7u4-1 ~]# tail -1 /var/log/audit/audit.log
type=USER_CHAUTHTOK msg=audit(1504694881.101:98531): pid=10394 uid=0 auid=0 ses=4285 msg='op=password status displayed for user id=1000 exe="/usr/bin/passwd" hostname=rhel7u4-1.gsslab.pnq2.redhat.com addr=? terminal=pts/0 res=success'
Actual results:
As per below article, USER_CHAUTHTOK means "Triggered when a user account attribute is modified."
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sec-Audit_Record_Types.html
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Expected results:
This message should have not contained USER_CHAUTHOK as type.
Additional info:
Please follow below discussion trail -
https://www.redhat.com/archives/linux-audit/2017-August/msg00121.html
There are a series of commits to upstream passwd that fixes the auditing:
https://pagure.io/passwd/commits/master
These would need to be applied in the passwd package to fix the auditing. passwd is not an approved component for 7.5, so maybe we can target this for 7.6?
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:2257