LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2006, 06:47 AM   #1
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
unable to telnet


Hi,

I was able to telnet machine a day before, but the next day I was not able to. There were no changes made in between. I am able to ssh. So, I think the limit of users that can do telnet, is exceeded...? How can I resolve it without rebooting the machine...


Thanks and waiting for ur help.
 
Old 11-02-2006, 10:47 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you checked your /etc/hosts.allow and /etc/hosts.deny files to see if you have issues there?
 
Old 11-03-2006, 01:13 AM   #3
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Original Poster
Rep: Reputation: 31
I have checked there. No issue. I am very sure that there are some limits the user can login at a time. Now, some one logged in but did not exit and just closed his terminal... so telnet session is still on.. and such it exceeded the limit.. now i want to know how to grow that limit...
 
Old 11-04-2006, 11:32 AM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Limits can be placed by editing the /etc/security/limits.conf file. This is part of the "Pluggable Authentication Mechanism" or PAM. I think the proper syntax would be <domain> <type> <item> <value> per line, for example:

Code:
*	hard maxlogins 4
Let me know if this helps.
 
Old 11-04-2006, 12:45 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If you can log in using ssh with that user, you should be able to kill off the other sessions on the machine. The trick is to identify them.

The
Code:
who -H -u
command will show information which should be helpful including the PID of the login shell. You can check what that session is "doing" using
Code:
pstree -p -a <pid>
You should be able to kill off session which have been left idle from your ssh session, assuming it's the same user.

I'm assuming you're logging into a machine using bash as the shell (do "echo $SHELL" to find out ). If so, you can edit the user's .bashrc file (or the global /etc/profile if you want the change to be applied to all users), adding the line
Code:
TMOUT=120
which will make the shell auto-logout if left idle for two minutes (120 seconds).

You might want to use a timeouot larger than this - it's annoying for users to get auto-logged out frequently. Maybe set it to an hour (3600).
 
  


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
unable to telnet to port 25 jacquedp Linux - Newbie 4 02-22-2005 02:10 PM
unable to use some command when telnet in chongluo Linux - Newbie 4 03-27-2004 12:26 AM
Unable to allow Incoming Telnet ivanscheers Linux - Security 12 09-04-2003 10:48 PM
unable telnet to 127.0.0.1 joseph Linux - General 6 08-19-2003 02:07 AM
Unable to telnet to linux from win98 jayendranath Linux - Networking 4 06-26-2003 09:17 AM


All times are GMT -5. The time now is 09:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration