Operating System - HP-UX
1834731 Members
2650 Online
110070 Solutions
New Discussion

Telnet timeout for inactivity on 10.20 & 11.x?

 
SOLVED
Go to solution
Angie_1
Regular Advisor

Telnet timeout for inactivity on 10.20 & 11.x?

Would like to make telnet sessions timeout on both 10.20 and 11.X for inactivity. Anyone know how to do this?

Thanks!
Angie
5 REPLIES 5
Sanjay_6
Honored Contributor
Solution

Re: Telnet timeout for inactivity on 10.20 & 11.x?

Hi Angie,

Try TMOUT. Put this in the /etc/profile file so that it would be global .

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000009872458

The doc id is A4872969.

Hope this helps.

Regds
Steven E. Protter
Exalted Contributor

Re: Telnet timeout for inactivity on 10.20 & 11.x?

Teh TMOUT variable will work for idle users on the prompt.

If an application, even one as simple as top is open it will not work.

Its up to the application vendor to dump the user out for inactivity, after which the system can clean up sessions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Telnet timeout for inactivity on 10.20 & 11.x?

telnet does not have a timeout. If your users are logging in with a normal shell prompt, then the variable TMOUT can be used to specify the number of seconds of no activity in the shell. The key here is: "in the shell" If a user starts some process like vi and then goes on vacation, the session will stay open forever.

While you can look at: who -u
be very careful about trying to script a job that kills user sessions. You may kill critical database activity or worse, an important root user job. There will be a lot of customization required.


Bill Hassell, sysadmin
Angie_1
Regular Advisor

Re: Telnet timeout for inactivity on 10.20 & 11.x?

I pulled up the document regarding the "TMOUT" variable. TMOUT=# of seconds?
Thanks!

Angie
==========================================

Document description: How to keep users from overridding TMOUT to avoid autologout
Document id: A4872969



You may provide feedback on this document



Problem Description

My users will override the autologout/tmout settings to prevent
being timed out. As the Administrator, how do I restrict users
from overriding TMOUT in order to avoid autologout?

Configuration Info

Operating System - HP-UX
Version -10.20
Hardware System - HP 9000
Series -E55

Solution

For non-csh:
/etc/profile is read by all users when they log on. The permissions
on /etc/profile are normally read-only. Thus non-root-capable users
can not change /etc/profile. This is the place the make the change.

Add the following in /etc/profile:

TMOUT=
readonly TMOUT
export TMOUT


Angie_1
Regular Advisor

Re: Telnet timeout for inactivity on 10.20 & 11.x?

Issue resolved. Thanks!