- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX: Console session logout after idle time
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
Forums
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
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
09-05-2001 06:46 PM
09-05-2001 06:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 06:59 PM
09-05-2001 06:59 PM
SolutionSet a non-zero value for the environmental variable TMOUT. When thusly set, the shell will terminate if a command is not entered within the prescribed number of seconds after issuing the PS1 prompt.
For instance, to logoff the session after 1-minute of inactivity do:
# TMOUT=60
# export TMOUT
This can be added to the user's $HOME/.profile (including root's).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 07:02 PM
09-05-2001 07:02 PM
Re: HP-UX: Console session logout after idle time
You would need to add something to your
/etc/profile. This should work....
if tty=/dev/console
then
TMOUT=3600 # 5 minutes
fi
TMOUT is part of the shell
Regards
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 07:39 AM
09-06-2001 07:39 AM
Re: HP-UX: Console session logout after idle time
Add following to your /etc/profile.
TMOUT=3600 # 5 minutes
readonly TMOUT
This will make this timeout (TMOUT) parameter not changable for any user.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 06:00 PM
09-06-2001 06:00 PM
Re: HP-UX: Console session logout after idle time
I amended the if statement as follows to get the TMOUT applicable to console session only...
if [ `tty` = "/dev/console" ]