User login on console is failing with "Login Incorrect" error

Solution Verified - Updated -

Issue

  • Users are unable to login via console but able to do ssh
  • When authentication fails, below error can be seen in /var/log/secure logs
PAM _pam_load_conf_file: unable to open /etc/pam.d/postlogin (2x)
  • Below message is displayed on the console, while trying to login.
Login Incorrect

Environment

  • Red Hat Enterprise Linux 7

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