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