How to restrict access based on a text file in PAM?

Updated -

The Pluggable Authentication Modules (PAM) module used to restrict access based on a text file is called pam_listfile.so. This is used to check a specified item against a list in a file; items can be tty, user, group, shell, ruser, rhost. It can restrict the access to the entire system or a specific (PAM aware) service.

Example: Restrict sshd a...

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