LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-21-2012, 08:18 PM   #1
sheelavantar
Member
 
Registered: Aug 2010
Posts: 69

Rep: Reputation: 1
pam_listfile.so not blocking root login using telnet


Hello All,
I am trying to block telnet login for "root".

I am using pam_listfile.so module to achieve this.
but pam_listfile.so module is failing to block the root login.

I have added the following line in /etc/pam.d/login file

PHP Code:
# Block users listed in "/etc/loginusers"
auth       required   /lib64/security/pam_listfile.so item=user sense=deny file=/etc/loginusers onerr=succeed 
and I have added "root" entry in the /etc/loginusers file.

When I checked the log, I found the below lines.

PHP Code:
Feb 22 02:06:46 UAMA-T loginpam_unix(remote:account): account root has password changed in future
Feb 22 02
:06:46 UAMA-T loginpam_unix(remote:session): session opened for user root by (uid=0)
Feb 22 02:06:46 UAMA-T loginROOT LOGIN ON pts/3 FROM 10.254.208.86 
please let me know if anybody know about this.

Warm Regards,
Vijay
 
Old 02-21-2012, 09:20 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The telnet server isn't built with the PAM libraries. It may not even be built with the libwrap library. Try using xinetd to launch and control it or use hosts.deny. Be sure to test your solution. It may not work. Please consider using SSH instead.
 
Old 02-21-2012, 11:39 PM   #3
sheelavantar
Member
 
Registered: Aug 2010
Posts: 69

Original Poster
Rep: Reputation: 1
Thanx for the reply. I'll check the telnet build.
 
Old 02-22-2012, 02:19 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can simply use "ldd /sbin/in.telnetd" to check for the external libraries loaded. I temporarily installed the telnet-server package to check for libpam (and quickly removed it like a cancer) but didn't remember if libwrap was used.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
login as root through telnet Sir_George Linux - Security 2 07-20-2006 04:57 PM
Can't login with TELNET for ROOT sjcollier Linux - Newbie 5 08-17-2003 03:07 PM
Telnet login as root macone Linux - Security 7 11-13-2002 05:39 AM
Login thru telnet as root uprichard Linux - Security 11 05-09-2002 12:12 PM
Root login to telnet sarmadys Linux - Security 6 01-24-2002 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration