Solved

Inactivity Timeout in Telnet Setting (RH5.0)

Posted on 1998-09-11
8
633 Views
Last Modified: 2013-12-15
Redhat 5.0 linux question.  Telnet session inactivity timeout and disconnect is annoying me, how can I set the period for inactivity or disable the disconnect?  I can't seem to find ny info on this, but I suspect the answer's so simple I'll smack myself.
0
Comment
Question by:deusx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Author Comment

by:deusx
ID: 1630772
Adjusted points to 100
0
 
LVL 1

Expert Comment

by:t2pp
ID: 1630773
Try the "limit" parameter in /etc/ftpaccess.
0
 

Author Comment

by:deusx
ID: 1630774
Umm... Thanks, but I'm asking about Telnetd, not FTPd.  And the limit parameter (according to the man file) limits the number of connections to FTP, not even close to what I'm looking for.  

I need to stop Telnet sessions from disconnecting when I let the shell go idle for more than 5 min.

0
Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

 
LVL 5

Expert Comment

by:n0thing
ID: 1630775
which shell are you using ?? tcsh ? bash ??
0
 

Author Comment

by:deusx
ID: 1630776
Bash, I do believe...
0
 
LVL 5

Expert Comment

by:n0thing
ID: 1630777
One way to find out for sure which shell you're using is to do a "grep myid /etc/passwd" and
see the last characters ../bin/tcsh .. /bin/bash ... or else. For tcsh you could add
set autologout 1000000 or some last number. Each digit presents a minute.
0
 
LVL 12

Expert Comment

by:Otta
ID: 1630778
I agree with 'n0thing';
if using  'tcsh' or 'csh', then 'set autologout nnn'.

0
 

Accepted Solution

by:
tosi earned 100 total points
ID: 1630779
Is your TMOUT variable set ?

By the definition of ksh ( which bash does try hard to emulate ), the TMOUT defines your timeout in seconds.

for an indefinate timeout, set it to 0 by:

export TMOUT=0


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question