Operating System - HP-UX
1820644 Members
1973 Online
109626 Solutions
New Discussion юеВ

Re: How to Configure session timeout for Hp-UX11

 
mudongxiao
Advisor

How to Configure session timeout for Hp-UX11

Looks like my session will drop automaticly If I don't touch more than 60 minutes.
How can I reset it to 180 minutes?
Thanks
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: How to Configure session timeout for Hp-UX11

The most likely way is to reset the TMOUT environment variable.

# echo $TMOUT

to see if it is set. If it is you should nee

TMOUT=60

To reset it for this session:

# export TMOUT=180

To make the change permanent set it in your .profile file.
mudongxiao
Advisor

Re: How to Configure session timeout for Hp-UX11


If I using root to change the .profile under /, or I logon a certain user to change his own .profile
Thanks
mudongxiao
Advisor

Re: How to Configure session timeout for Hp-UX11

actually,
I type command env.
I do not find any thing regarding
TIMEOUT or TMOUT.
Is any default value for TIMEOUT.

In this case
How can I change it to 180 minutes.
Thanks
Steven E. Protter
Exalted Contributor

Re: How to Configure session timeout for Hp-UX11

180 minutes multiplied by 60 will set Timeout to 180 minutes.

The value is measured in seconds.

It will work on command lines. It will not work if an application, even like top is running.

I used to manage systems in a shop that had natural/adabas logins via telnet.

To time out users the following had to be done.
adabas (kind of like oracle) had a timeout set via its configuration tool.

The natural application had to hae a timeout configured via script. We chose to kill the telnet session in that script, but TMEOUT will work anyway.

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
Joseph C. Denman
Honored Contributor

Re: How to Configure session timeout for Hp-UX11

If TMOUT is not set, you may have a network issue. Check with your network shop so see if there is a router/switch setting to kill idle sessions.

...jcd...
If I had only read the instructions first??
OldSchool
Honored Contributor

Re: How to Configure session timeout for Hp-UX11

Are you perhaps running csh?

If so, 'autologout', according to the man page, defaults to 60, and can be changed by setting the variable to the desired time. An autologout of 0, or unsetting the variable, disables this completely.
James R. Ferguson
Acclaimed Contributor

Re: How to Configure session timeout for Hp-UX11

Hi:

# set | grep TMOUT

...will show any value set.

Regards!

...JRF...
mudongxiao
Advisor

Re: How to Configure session timeout for Hp-UX11

sorry,
I type echo $TMOUT, I got 0.
Using which command I can disable it.
Thanks
Joseph C. Denman
Honored Contributor

Re: How to Configure session timeout for Hp-UX11

If echo $TMOUT=0
then
the TMOUT variable is not set. It is the default value. I believe you have a network issue.

...jcd...
If I had only read the instructions first??
Marcel Boogert_1
Trusted Contributor

Re: How to Configure session timeout for Hp-UX11

Hi there,

If it says 0 then you cannot be logged out because of the TMOUT variable.

Usually there├В┬┤s a timeout value set for the console. Are you logging onto the system from the console?

Reply with the output from the following command please:

grep TMOUT ~/.profile

Regards, MB.
Bill Hassell
Honored Contributor

Re: How to Configure session timeout for Hp-UX11

As mentioned, the HP-UX (actually, your shell) variable that controls the session timeout is TMOUT or autologout (for csh users). Set TMOUT=10800 to tell the shell to log you out after 180 minutes. If TMOUT=0 or autologout=0, then HP-UX is not timing out your session. It is not unusual for network administrators to forcefully disconnect telnet sessions that are idle for long periods. If you do not see the 1 minute warning at 59 minutes on your screen, then HP-UX is not the problem. Contact your network administrator.


Bill Hassell, sysadmin