HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Inactive session logoff
Operating System - HP-UX
1834962
Members
1684
Online
110071
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-04-2002 10:10 AM
06-04-2002 10:10 AM
I would like to have any login session automatically log off if the session has been inactive for a certain amount of time (time yet to be determined). Can this be done with a system setting?
Or is a 'script' required and if so any ideas/examples?
The system is currently running HP-UX 10.20.
Or is a 'script' required and if so any ideas/examples?
The system is currently running HP-UX 10.20.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 10:14 AM
06-04-2002 10:14 AM
Solution
All you have to do is set the TMOUT environment variable to a non-zero number od seconds. If no input is received within that number of seconds the shell is terminated.
Man sh_posix for details. You could put this entry in the users' .profile.
Man sh_posix for details. You could put this entry in the users' .profile.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 10:23 AM
06-04-2002 10:23 AM
Re: Inactive session logoff
Hi,
You can put the following entry in the /etc/profile or .profile file of the users.
/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
You can put the following entry in the /etc/profile or .profile file of the users.
/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
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP