Operating System - HP-UX
1834089 Members
2538 Online
110063 Solutions
New Discussion

configure telnetd to automatic close connection

 
Renato Mazzoneschi
Occasional Contributor

configure telnetd to automatic close connection

Hi,
I'd known how I can setup an automatic timeout
to a telnet session after n minutes (es. 60 minutes)
Is it possible??

thanks
Spiff
4 REPLIES 4
eran maor
Honored Contributor

Re: configure telnetd to automatic close connection

Hi
you can use the environment variable TMOUT. You can set it in /etc/profile

for ksh export TMOUT=100 ( per sec. )

and i think in csh is setenv TMOUT=100

hope that i help

love computers
eran maor
Honored Contributor

Re: configure telnetd to automatic close connection

Hi Again

you can see also the answer in this link

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0dfc5f260cafd4118fef0090279cd0f9,00.html
love computers
Magdi KAMAL
Respected Contributor

Re: configure telnetd to automatic close connection

Hi Renato,

You may set the variable TMOUT to the desired amount of seconds that you wish to limit, and put such a definition in the /etc/profile.

#vi /etc/profile
and add the following line:

export TMOUT=60

This example for a timeout set to 60 seconds of unactivity.

Magdi
Philip P. Hartl
Valued Contributor

Re: configure telnetd to automatic close connection

This works well, however I suggest you make TMOUT readonly otherwise users will modify the value to avoid the timeout. Also TMOUT is in seconds, so you might want it to be a little larger; we user 1800 (30 Minutes).

TMOUT=1800 readonly TMOUT
export TMOUT
Don't take life so seriously; nobody gets out alive.