1832296 Members
1924 Online
110041 Solutions
New Discussion

Idle session Time out

 
SOLVED
Go to solution
Robert True
Frequent Advisor

Idle session Time out

How can I set an idle time-out for a login session in HP-UX? Is there a script available somewhere, or am I overlooking an option in the system files?

4 REPLIES 4
john korterman
Honored Contributor
Solution

Re: Idle session Time out

Hi,
from the man page of ksh:
TMOUT If set to a value greater than zero, the shell terminates if a command is not entered within the prescribed number of seconds after issuing the PS1 prompt.

regards,
John K.
it would be nice if you always got a second chance
James R. Ferguson
Acclaimed Contributor

Re: Idle session Time out

Hi Robert:

In the users profile, or in 'etc/profile' set TMOUT to the number of seconds of you want the shell to wait at a PS1 prompt before terminating the user's session. This is documented in the shell's man pages.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Idle session Time out

Hi Robert,

See this thread for a discussion of TMOUT:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x10278f960573d611abdb0090277a778c,00.html

Pete

Pete
Robert True
Frequent Advisor

Re: Idle session Time out

THanks to all, Never knew about TMOUT. Looks like I will need a killer script to do what I want though, as the users all set in a menu. Could have the menu timeout, I quess,maybe have it check TMOUT! Food for thought