How to limit users telneting into host using pam_listfile.so module?
Issue
I have added the following to /etc/pam.d/login
auth requisite pam_listfile.so item=user sense=allow file=/etc/telnet.allow onerr=fail
And it does not work. i.e. anyone can still login. The exact some line in /etc/pam.d/sshd works for ssh. What pam file do I need to modify?
Environment
- Red Hat Enterprise Linux 5/6
- telnet-server
- pam
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.