1836535 Members
3697 Online
110102 Solutions
New Discussion

inactivity timeout

 
Satish Y
Trusted Contributor

inactivity timeout

Hi,

How to set inactivity timeout for a terminal. for example if a user prompted for login and passwd and if he won't enter with in 15 minutes , it should give alarm call and close connection.

Thanks in advance.

Regards,
Satish.
Difference between good and the best is only a little effort
5 REPLIES 5
KapilRaj
Honored Contributor

Re: inactivity timeout

hi Satish( Do i know you),

You can accomplish this by adding a -t"TIME IN SECONDS" in the last of telnet line in /etc/inetd.conf. For example,

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -t 120

after this restart inetd daemon by inetd -c

This excersize disconnects a user who is inactive for 2 minutes that is 120 seconds.

Hope this helps you,

kaps
Nothing is impossible
Satish Y
Trusted Contributor

Re: inactivity timeout

Kapil, it's not working....
Satish.
Difference between good and the best is only a little effort
KapilRaj
Honored Contributor

Re: inactivity timeout

Hi satish,

Can you go through the man pages of inetd.conf , there is an example for disconnecting an inactive ftp session. It should work. Is it not ?.

Even telnet is also started by inetd

best of luck

kaps
Nothing is impossible
Satish Y
Trusted Contributor

Re: inactivity timeout

No, its not working....
Cheers...
Satish.
Difference between good and the best is only a little effort
John Waller
Esteemed Contributor

Re: inactivity timeout

Satish,

Are these terminals connected to a serial MUX card on the HP server or are they remote. Normally when you "telnet" into the server I find the connetion gets closed automatically if you do not enter a user ID and password within about 2 minutes. If these are serial devices , then modify the /etc/inittab and add a -t 60 (60 seconds) option to each line which is running the getty for the devices. This will close the connection but perhaps someone else can expand as to how to send an alarm.