How to define multiple PAM access lists for different services
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.