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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.