HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login session timeout
Operating System - HP-UX
1827294
Members
2193
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-05-2001 12:30 PM
06-05-2001 12:30 PM
Hi,
can anyone tell me how to set up inactivity time out for user sessions in HP-UX 11.0?
Thanks & regards,
Jegi
NBC
can anyone tell me how to set up inactivity time out for user sessions in HP-UX 11.0?
Thanks & regards,
Jegi
NBC
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2001 12:49 PM
06-05-2001 12:49 PM
Solution
There's no general purpose mechanism I know of that works in all situations, but putting
TMOUT=seconds; export TMOUT
in /etc/profile will set the shell-level timeout for all users of sh or ksh to. 1800 would be a typical value.
TMOUT=seconds; export TMOUT
in /etc/profile will set the shell-level timeout for all users of sh or ksh to
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2001 06:35 PM
06-05-2001 06:35 PM
Re: login session timeout
And for csh users, the variable is autologout and the units are in minutes. To force users to adhere to the TMOUT value (ksh, POSIX, bash) you can put this statement into /etc/profile:
export readonly TMOUT=14400
which forces every login shell to timeout in 4 hours or no activity. Note this also affects root's login and once set to readonly, the value in the shell cannot be changed, even by root. It's often common to set root's timeout to less than an hour to avoid open sessions on an open terminal or console.
Note that this timeout only counts time when the shell is idle. If a smart user starts another shell or perhaps a copy of vi, the timer will not run and the 'session' will never timeout.
Bill Hassell, sysadmin
export readonly TMOUT=14400
which forces every login shell to timeout in 4 hours or no activity. Note this also affects root's login and once set to readonly, the value in the shell cannot be changed, even by root. It's often common to set root's timeout to less than an hour to avoid open sessions on an open terminal or console.
Note that this timeout only counts time when the shell is idle. If a smart user starts another shell or perhaps a copy of vi, the timer will not run and the 'session' will never timeout.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP