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 1344649

Summary: rfe - pam_tally2 report all fail counts in secure log
Product: Red Hat Enterprise Linux 7 Reporter: Dalibor Pospíšil <dapospis>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED WONTFIX QA Contact: Dalibor Pospíšil <dapospis>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.2CC: pkis
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1272158 Environment:
Last Closed: 2016-06-10 10:08:17 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:

Description Dalibor Pospíšil 2016-06-10 09:08:47 UTC
+++ This bug was initially created as a clone of Bug #1272158 +++

Description of problem:
 - RFE for pam_tally2 to report all fail counts in secure log

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

Oct 15 11:04:48 el6server unix_chkpwd[1964]: password check failed for user (lockme)
Oct 15 11:04:48 el6server sshd[1962]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:04:49 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:04:52 el6server unix_chkpwd[1965]: password check failed for user (lockme)
Oct 15 11:04:55 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:04:56 el6server unix_chkpwd[1966]: password check failed for user (lockme)
Oct 15 11:04:58 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:04:58 el6server sshd[1963]: Connection closed by ::1
Oct 15 11:04:58 el6server sshd[1962]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:05:02 el6server unix_chkpwd[1970]: password check failed for user (lockme)
Oct 15 11:05:02 el6server sshd[1968]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:05:04 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:06 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 5, deny 4
Oct 15 11:05:06 el6server unix_chkpwd[1971]: password check failed for user (lockme)
Oct 15 11:05:07 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:08 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 6, deny 4
Oct 15 11:05:09 el6server unix_chkpwd[1972]: password check failed for user (lockme)
Oct 15 11:05:10 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:10 el6server sshd[1969]: Connection closed by ::1
Oct 15 11:05:10 el6server sshd[1968]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme

Expected results:

Oct 15 11:04:48 el6server unix_chkpwd[1964]: password check failed for user (lockme)
Oct 15 11:04:48 el6server sshd[1962]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:04:49 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:05:06 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 2, deny 4
Oct 15 11:04:52 el6server unix_chkpwd[1965]: password check failed for user (lockme)
Oct 15 11:04:55 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:05:06 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 3, deny 4
Oct 15 11:04:56 el6server unix_chkpwd[1966]: password check failed for user (lockme)
Oct 15 11:04:58 el6server sshd[1962]: Failed password for lockme from ::1 port 50904 ssh2
Oct 15 11:05:06 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 4, deny 4
Oct 15 11:04:58 el6server sshd[1963]: Connection closed by ::1
Oct 15 11:04:58 el6server sshd[1962]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:05:02 el6server unix_chkpwd[1970]: password check failed for user (lockme)
Oct 15 11:05:02 el6server sshd[1968]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme
Oct 15 11:05:04 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:06 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 5, deny 4
Oct 15 11:05:06 el6server unix_chkpwd[1971]: password check failed for user (lockme)
Oct 15 11:05:07 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:08 el6server sshd[1968]: pam_tally2(sshd:auth): user lockme (502) tally 6, deny 4
Oct 15 11:05:09 el6server unix_chkpwd[1972]: password check failed for user (lockme)
Oct 15 11:05:10 el6server sshd[1968]: Failed password for lockme from ::1 port 50905 ssh2
Oct 15 11:05:10 el6server sshd[1969]: Connection closed by ::1
Oct 15 11:05:10 el6server sshd[1968]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=lockme

Additional info:

Comment 1 Tomas Mraz 2016-06-10 09:29:00 UTC
pam_tally2 should not be used, it is deprecated.

Comment 2 Dalibor Pospíšil 2016-06-10 10:08:17 UTC
Ok than, I will restrict the test for rhel < 7