Operating System - HP-UX
1836644 Members
1712 Online
110102 Solutions
New Discussion

Re: Reset my login time-out

 
SOLVED
Go to solution
Kenn Chen_1
Advisor

Reset my login time-out

I would like to cancel my time-out option for my telnet session. I can't find the setting in my Unix parameters. thanks.
6 REPLIES 6
Niraj Kumar Verma
Trusted Contributor
Solution

Re: Reset my login time-out

Hi,

# export TMOUT=0


Regards
Niraj
Niraj.Verma@philips.com
Christian Gebhardt
Honored Contributor

Re: Reset my login time-out

Hi
who times you out ?

Do you connect via ssh, then your timeout settings are located in the config-file from sshd daemon

ClientAliveInterval 180
ClientAliveCountMax 20

means 180s*20 = 3600 s = 1 hour

You can only change this settings for all connections and you have to restart the sshd

Hint: if you don't want your session closed you can use
sar 600 600
than your session will keep alive

Chris
Kenn Chen_1
Advisor

Re: Reset my login time-out

i found it in /etc/profile and i change it or export TMOUT=0 in command prompt. The system do not take the effect immdiately. SHould I reboot the system ?
kish_1
Valued Contributor

Re: Reset my login time-out

not required , it will take it from the prompt
share the power of the knowledge
Robert-Jan Goossens
Honored Contributor

Re: Reset my login time-out

Hi,

It will take affect at next login, current login just do an # export TMOUT=0.

Robert-Jan.
Bill Hassell
Honored Contributor

Re: Reset my login time-out

The value is set each time you login. Any user can change the value after they login by setting it to the new value, or even do it automatically in .profile for each user.

If the system administrator sets TMOUT to readonly as in:

readonly TMOUT
export TMOUT=3600

then not even root can change the value in the local shell. NOTE: root should *always* timeout after a few minutes, no more than an hour, to avoid security problems.


Bill Hassell, sysadmin