How to define multiple PAM access lists for different services

Solution Verified - Updated -


  • Need to define multiple PAM (Pluggable Authentication Modules) access lists to control users access for different services
  • Each service requires its own pam_access access control list
  • For example:
    • allow user1 from for ssh
    • allow user1 from for ftp
    • disallow access from other source addresses


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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In