Remove "Last failed login" info after login

Solution Verified - Updated -

Issue

  • Last failed login info is displayed upon logging in. How to prevent the below highlighted lines from being displayed?

    # su - bob
    Last login: Thu Aug  5 13:01:53 AEST 2021 on pts/0
    Last failed login: Thu Aug  5 13:02:14 AEST 2021 from 192.168.1.2 on ssh:notty     <<<<<=====
    There were 3 failed login attempts since the last successful login.                <<<<<=====
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
    • PAM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content