1753797 Members
7481 Online
108799 Solutions
New Discussion юеВ

Re: login timeout

 
SOLVED
Go to solution
jeff go
Frequent Advisor

login timeout

Hi guys

on another note....


Is there a timeout session that i can disable
when logged in so it does not boot me out due to inactivity ?


thans for your help...
if it aint broke, dont fix it
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: login timeout

The only standard feature in HP-UX that can do that is the shell timeout, normally not set. For POSIX shell users, type:

echo $TMOUT

If set, it will be the number of seconds of idle shell prompt time before an auto-logout occurs. For csh, the variable is autologout and is in minutes.

In both cases, the shell only counts the time at the shell prompt. If you run a copy of vi, the timer stops and restarts once you exit vi.

So, simply set TMOUT or autologout to 0 to avoid getting a timeout. However, I would only do this when your computer is not connected to any network. This is more of a security issue than performance controls.


Bill Hassell, sysadmin
PIYUSH D. PATEL
Honored Contributor

Re: login timeout

Hi,

You can search for the following entry in the /etc/profile or .profile file of the users.

Remove the TMOUT paramters from /etc/profile for all users.

TMOUT=seconds

TMOUT affects how the shell itself operates. So if someone is sitting at a
shell prompt too long, they get logged out.

But if they, for instance, run the vi editor and then walk away, TMOUT does no
good. The vi editor ignores TMOUT. While any program could obtain TMOUT and
respect it, none except the shell do (as far as I know).

Even if they did, the editor would probably just exit and thus the shell would
then start a second TMOUT period.

Thats it.

Regards,
piyush
Martin Johnson
Honored Contributor

Re: login timeout

You may want to check with your System Administrator (SA) to make sure he/she is not running a "killer" script. A "killer" script is one that monitors Process IDs and their CPU utilization. It will kill a process that has been idle for so many minutes. Some SAs run "killer" script to get around those users who sit in vi to avoid being killed.


Marty