- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User logon session doesn’t expire, even if left th...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 07:37 AM
06-16-2009 07:37 AM
I am using Hpux and linux (redhat and suse).
How to make expiring the system automatically for terminal login [hpux (rlogin / telnet) and linux (ssh)] and xmanger / vnc login (GUI).
how to solve this problem.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 07:48 AM
06-16-2009 07:48 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
set the TMEOUT paramter.
This will work for terminal sessions.
But if you run an application after that it will not time out because most applications keep the terminal session thinking there is activity unless they themselves have idle time outs.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 07:58 AM
06-16-2009 07:58 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
posix, ksh and bash have the TMOUT variable. Note this only works when the the user is sitting at a "PS1" prompt. If they've left something open, say "vi" or an app, I don't believe this works.
sh and csh don't have that ability at all as far as I can tell.
CDE / graphical sessions, see:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1254173
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 08:06 AM
06-16-2009 08:06 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
Our network team has a more drastic solution to this problem. I can not say I like the way they do it but security guidelines force them to kill any sessions which are inactive for more than 3600 seconds, by killing the connection between the server and the client. It caused a lot of headaches for long running installations and such, but a necessary evil in my opinion. It is all done at the firewall level and we, as sysadmins, have no control over it. If you have an audit requirement for doing this, talk to your firewall people.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 08:40 AM
06-16-2009 08:40 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
sh == posix shell on HP-UX.
Hmm, I thought the scummy C shell has a similar variable but I can't find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 08:44 AM
06-16-2009 08:44 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
For that scummy C-shell the equivalent of the Posix TMOUT is 'autologout'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 08:51 AM
06-16-2009 08:51 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
I am using following shells
sh - for HP-Unix
bash - for linux (redhat / suse).
How, where (which file) and what parameter to be set for above mentioned OS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 08:57 AM
06-16-2009 08:57 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
export TMOUT=3600 (* in seconds, always. 3600 = one hour *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 09:01 AM
06-16-2009 09:01 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
If you use the following you don't have to document it: ;-)
export TMOUT=$(( 1 * 60 * 60 ))
If you are feeling really evil, you can make the variable readonly so users can't change it.
readonly TMOUT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2009 09:06 AM
06-16-2009 09:06 AM
Re: User logon session doesn’t expire, even if left the system logged on for a long time.
For your 'bash' shell, 'TMOUT' should also apply. Set it as you see fit in your '${HOME}/.bashrc'.
Regards!
...JRF...