LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-20-2011, 05:22 PM   #1
cloverit
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
Change # of telnet login attempts Redhat Enterprise


I would like to change the number of login attempts a user can attempt when using telnet to connect to the server. Right now a user will get 4 attempts to enter the login and password before they get a "Connection to host lost" message. The user than has to telnet back into the server to try again. I do not want the telnet users to be locked out after so many attempts, i just want the connection to the host lost after 1 failed attempt. The server is Red Had Enterprise Linux Server release 5.3 (Tikanga). I am having difficulty finding this setting for telnet sessions any help would be appreciated. Thanks.
 
Old 05-20-2011, 08:56 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Do the following:
Code:
vi /etc/login.defs
In that file, look for LOGIN_RETRIES or something of that nature, that should be the option that you need to configure.

Cheers,

Josh
 
Old 05-20-2011, 08:59 PM   #3
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Is there any reason you are using telnet? SSH is more secure and supported by virtually everything so there is very little reason to not use it.
 
Old 05-21-2011, 02:22 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Is there any reason you are using telnet?
if i had to guess -- a OLD text book from 2000-2005
 
Old 05-23-2011, 10:02 AM   #5
cloverit
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the logins.def information. Do you happen to know if there is a way for this setting to take effect without a reboot? Many users are connected to the server 24/7 so it makes reboots very difficult. We are using telnet because it it is an internal server and works better with some third party programs.
 
Old 05-29-2011, 01:58 PM   #6
karthik3152
LQ Newbie
 
Registered: May 2011
Posts: 10
Blog Entries: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by cloverit View Post
Thanks for the logins.def information. Do you happen to know if there is a way for this setting to take effect without a reboot? Many users are connected to the server 24/7 so it makes reboots very difficult. We are using telnet because it it is an internal server and works better with some third party programs.

I think for doing it on runtime you can use the command /etc/init.d/telnetd stop and start for the telnet process to start with the changed configuration.

Hope this helps.
 
  


Reply



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
how to change telnet login timeout of 60 secs gimp123 Linux - Software 3 10-24-2011 01:52 PM
Linux Redhat Enterprise 5 telnet issue! neesad Linux - Server 12 02-27-2010 08:15 AM
setting up telnet on redhat enterprise linux 5 rockjr Linux - Enterprise 10 12-10-2007 01:38 PM
change Telnet login prompt Joshsawyer77 Linux - Newbie 4 07-01-2006 04:50 AM
Mandrake 9 - change telnet login message vrillusions Linux - Networking 2 02-03-2003 11:34 PM

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

All times are GMT -5. The time now is 01:13 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