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, 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