How to define multiple PAM access lists for different services

Solution Verified - Updated -

Issue

  • 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 192.168.1.0/24 for ssh
    • allow user1 from 192.168.2.0/24 for ftp
    • disallow access from other source addresses

Environment

  • 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