How to limit users telneting into host using pam_listfile.so module?

Solution Verified - Updated -

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 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.