Operating System - HP-UX
1752664 Members
5477 Online
108788 Solutions
New Discussion юеВ

Logout or lock after a specific period of inactivity

 
Lucent
Occasional Advisor

Logout or lock after a specific period of inactivity

Hi,

I am using hummingbird's exceed client to connect to unix server.
I'm looking for a way to log out or lock a session after a specific period of inactivity.
Appreciate your help if someone can provide some clue.

Thanks,
7 REPLIES 7
Peter Godron
Honored Contributor

Re: Logout or lock after a specific period of inactivity

Lucent,
add the line:
TMOUT=1800 into your /etc/profile
and sessions will log out after 30 minutes of inactivity, if the user run /usr/bin/sh as shell.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have never awarded points ! 0 points for 17 answers.
Steven E. Protter
Exalted Contributor

Re: Logout or lock after a specific period of inactivity

Shalom,

As Peter points out the OS has a facility TMOUT which will work for empty command lines.

If an appliacation is run and left running it will defeat this mechanism.

So it depends on what you are running. If hummingbird is used to connect to a database app, then the database app will need to time out users.

In agreement with Peter about the point thing. If you attend to this you will find you'll get more help.

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
Lucent
Occasional Advisor

Re: Logout or lock after a specific period of inactivity

I tried this workaround but the problem is not resolved.
I think this work only for telnet and SSH but doesn't work for a session CDE
Bill Hassell
Honored Contributor

Re: Logout or lock after a specific period of inactivity

..doesn't work for CDE...

Correct. CDE is special way to talk to the OS and most users will ask it to take over their entire PC desktop. So if you want the CDE desktop to go away after a certain time, change the timeout options in the CDE desktop.

The TMOUT value only affects a normal shell. The window that CDE starts will bypass normal login code and fails to run all the profiles. TMOUT is only effective when the current shell reports that the value is set (ie, echo $TMOUT) and you do not touch the keyboard during the idle period. It has no effect on subprocesses like vi...


Bill Hassell, sysadmin
Lucent
Occasional Advisor

Re: Logout or lock after a specific period of inactivity

in the file /usr/dt/config/C/sys.resources, I have the lines bellow
dtsession*saverTimeout: 10
dtsession*lockTimeout: 10
dtsession*cycleTimeout: 3
dtsession*saverList: StartDtscreenBlank

but the sessions opened form PC using hummingbird's are not locked
Peter Godron
Honored Contributor

Re: Logout or lock after a specific period of inactivity

Lucent,
sorry to see my initial answer was not very helpful.

Here is the solution thread for CDE exceed:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029068

For further exceed spcific questions, you could try:
http://www.hummingbird.com/exceedusers/index.html?cks=y
Lucent
Occasional Advisor

Re: Logout or lock after a specific period of inactivity

Thanks for your help.
This workaround works only if VARIABLE DISPLAY=:0.0 but it doesn't work if DISPLAY=:0.0 like DISPLAY=10.10.10.10:0.0