Operating System - HP-UX
1847474 Members
2529 Online
110265 Solutions
New Discussion

Re: Increase Telnet Login Time

 
LucianoCarvalho
Respected Contributor

Increase Telnet Login Time

Hi! Does anyone know if there is anyway to increase the time that telnet will wait before a user enter the login name????
14 REPLIES 14
Domenico_5
Respected Contributor

Re: Increase Telnet Login Time

Hi luciano

i think that is a security feature and cannot be modified.

bye

Emanuel Sardenberg
Occasional Advisor

Re: Increase Telnet Login Time


Hi!

# vi /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -z???

Example -z100 in ms(mili seconds)

Emanuel Sardenberg
Roger Baptiste
Honored Contributor

Re: Increase Telnet Login Time

hi,

i don't think it is possible.
The -z feature? - never seen it. The man pages do not mention it.

-raj
Take it easy.
James R. Ferguson
Acclaimed Contributor

Re: Increase Telnet Login Time

Hi:

The '-z' option to 'telnetd' is docunmented in the 11i man pages:

/begin_quote/

This option allows users to set the BUFFERTIMEOUT value. This option, when set, informs telnetd how long it should wait before timing out and flushing the concatenated user data to TCP. Note that the TIMEOUT value is measured in clock ticks (10ms) and not in seconds. This option is set with integer values. There is no specified default.

/end_quote/

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: Increase Telnet Login Time


Are you trying to script the login? if so, perl can do this for you:

http://www.perlfect.com/articles/telnet.shtml

live free or die
harry
Live Free or Die
LucianoCarvalho
Respected Contributor

Re: Increase Telnet Login Time

Thanks Guys!.
But I think the -z option will change the time that telnetd will wait before send user data and not the time that telnet will wait before disconect if the user don't enter the user login.
Thanks anyway.
LucianoCarvalho
Respected Contributor

Re: Increase Telnet Login Time

I made the test and the -z option didn't work to set the login timeout.
thanks
harry d brown jr
Honored Contributor

Re: Increase Telnet Login Time

If you want to set the logout time do this in the users profile:

readonly TMOUT=600

If they are inactive for 5 minutes at a SHELL PROMPT only, then they will be logged out. Of course if it is in their profile, it won't matter if they telnet'd or rlogin'd in.

BUT if they are using something like "vi", "emacs", in an application, piping something to "more", whatever they are doing, if they are NOT at a SHELL PROMPT, then they will NOT be logged out. If you want to logout idle users then you have to write a process to look for them and "kill" them. This is something I DO NOT BELIEVE in, unless you know exactly what they are doing, especially if they are in an application.

live free or die
harry
Live Free or Die
LucianoCarvalho
Respected Contributor

Re: Increase Telnet Login Time

Thnkas harry, but that's not exactly what I'm looking for(please don't feel angry). The time I'm referencing is not the time set by TMOUT. Let me try to explain. When the user tries telnet to a HP-UX machine, the HP-UX/telnetd will wait normally 1 minute until the user informs the login name. If the user do not inform the login name, the HP-UX/telnetd will disconect the telnet session. The 1 minute before the machine disconect the user if there is no login name informed is the time I'm trying to modify. I don't know if it is possible.
Thanks a lot.
Thomas Schler_1
Trusted Contributor

Re: Increase Telnet Login Time

Luciano,

you do have to control the time-out on the server side, i.e. telnetd(1M) of the host where you want to login. The default time-out value is 2 min (120 s). If you e.g. want to double the time-out value for telnetd you have to run telnetd with the option -n240 (i.e. 240 s) started from /etc/inetd.conf:

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -n240

Reboot the system after changing inetd.conf.
no users -- no problems
harry d brown jr
Honored Contributor

Re: Increase Telnet Login Time

Luciano,

Are you running 11i??

And to clarify things, you want to change the TIMEOUT at the LOGIN prompt, correct??

live free or die
harry
Live Free or Die
LucianoCarvalho
Respected Contributor

Re: Increase Telnet Login Time

Yes Harry. I'm running 11.i and the time is the TIMEOUT at the LOGIN prompt.
thanks
harry d brown jr
Honored Contributor

Re: Increase Telnet Login Time

Luciano,

I've been playing with the -z and -n option without any luck. It appears neither option does squat at the login prompt. I'm not even sure it will ever timeout. I'll keep playing and researching, but it doesn't look good :-(

BTW, when making changes to inetd.conf, you have to issue a "inetd -c" to have it reread the configuration file (/etc/inetd.conf).


live free or die
harry
Live Free or Die
LucianoCarvalho
Respected Contributor

Re: Increase Telnet Login Time

Ok! Harry. Thanks a lot for your help.