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

Solution Verified - Updated -


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 :      <------- Does not work
+ : testuser :      <------- Works fine


  • 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