HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Lock the terminal automatically
Operating System - HP-UX
1833832
Members
2278
Online
110063
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
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
03-06-2008 11:36 PM
03-06-2008 11:36 PM
How to Lock the terminal automatically
Dear All,
As you know that LOCK command can be used to lock the terminal, but this method is not automated.
I want a method so that after a certain amount of time, my terminal gets locked or the system gets log off.
Please suggest.
Regards:
Arun Jain
As you know that LOCK command can be used to lock the terminal, but this method is not automated.
I want a method so that after a certain amount of time, my terminal gets locked or the system gets log off.
Please suggest.
Regards:
Arun Jain
speak less say more
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2008 12:00 AM
03-07-2008 12:00 AM
Re: How to Lock the terminal automatically
hi Arun Jain,
You can look into the TMOUT environment variable.
Normally the shell will support some sort of auto logout option. You need to use TMOUT variable. You can setup TMOUT in seconds, the shell terminates after waiting for that number of seconds if input does not arrive. For example if you setup TMOUT 60 seconds:
$ export TMOUT=60
So, if no input (command typed) arrived it will terminate the shell.
You can add TMOUT to your shell configuration file ~/.profile file.
For more info, see also:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1204876320855+28353475&threadId=111518
hope this helps!
kind regards
yogeeraj
You can look into the TMOUT environment variable.
Normally the shell will support some sort of auto logout option. You need to use TMOUT variable. You can setup TMOUT in seconds, the shell terminates after waiting for that number of seconds if input does not arrive. For example if you setup TMOUT 60 seconds:
$ export TMOUT=60
So, if no input (command typed) arrived it will terminate the shell.
You can add TMOUT to your shell configuration file ~/.profile file.
For more info, see also:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1204876320855+28353475&threadId=111518
hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2008 12:34 AM
03-07-2008 12:34 AM
Re: How to Lock the terminal automatically
Hi yogeeraj,
I put export TMOUT=5 in ~/.profile.
Now the thing is if I only put export TMOUT in the .profile, then also it flash a message that
"Shell will time out in 60 seconds." after sometime...
Now tell me, I dont want to see this msg. I want that as soon as shell reaches that point (if the time is specified), it should logout the session not flash a message like above, what should I do...
Regards:
Arun
I put export TMOUT=5 in ~/.profile.
Now the thing is if I only put export TMOUT in the .profile, then also it flash a message that
"Shell will time out in 60 seconds." after sometime...
Now tell me, I dont want to see this msg. I want that as soon as shell reaches that point (if the time is specified), it should logout the session not flash a message like above, what should I do...
Regards:
Arun
speak less say more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2008 01:20 AM
03-07-2008 01:20 AM
Re: How to Lock the terminal automatically
hi,
Unfortunately, this is default response of the shell. I don't know if there is another variable that can inhibit this message...
I leave it to the other Gurus to comment on this...
kind regards
yogeeraj
Unfortunately, this is default response of the shell. I don't know if there is another variable that can inhibit this message...
I leave it to the other Gurus to comment on this...
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
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