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.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.