pam_access fails with hostname while works fine with IP address on RHEL 7.7 and RHEL 7.6

Solution Verified - Updated -

Issue

pam_access which refers /etc/security/access.conf for access management does not work with hostname while it works fine when IP address is used.

+ : testuser : myrhel7.gsslab.pnq.com      <------- Does not work
+ : testuser : 10.74.253.72      <------- Works fine

Environment

  • Red Hat Enterprise Linux 7.6
  • Red Hat Enterprise Linux 7.7
  • sshd
  • 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