- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TMOUT - my understanding (and its effectiveness)
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
Discussions
Forums
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
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
тАО10-03-2005 08:32 AM
тАО10-03-2005 08:32 AM
- TMOUT will only time you out after xxx seconds of sitting at a shell prompt.
- It will not timeout if you are sitting at a menu.
- It will not time out a process waiting for some other reason - that is, your process is awaiting something other than a command yet you are not accumulating CPU time (for example, background processes).
It does not seem that TMOUT affects a user who is within a program - whether that be a menu, vi, etc, and yet is truly idle. If you need this to happen, you need to write your own script and monitor for idle sessions and then kill them.
(I guess the last point is what make me wonder how effective TMOUT really is. It seems all I really need to do to defeat TMOUT is enter vi at a command line).
We do set TMOUT as readonly in /etc/profile, so at least we know it can't be defeated in a users profile by specifying a greater value.
Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 08:39 AM
тАО10-03-2005 08:39 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 03:43 PM
тАО10-03-2005 03:43 PM
Re: TMOUT - my understanding (and its effectiveness)
If set to a value greater than zero, the shell
terminates if a command is not entered within the prescribed number of seconds after issuing the PS1 prompt.
If this parameter is set to a value greater than zero and you do not enter another command or Return within that number of seconds, the shell terminates.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 06:22 PM
тАО10-03-2005 06:22 PM
Re: TMOUT - my understanding (and its effectiveness)
You are exactly correct. TMOUT variable is something what shell defines to give certain level security to administrators. All that it can do is controlling idle time of the shell, but if the user enters in to some other program (eg: vi) then the tty control (stdin, stdout, stderr) is taken care by the new application and shell can not do anything about it.
so if you really want to control the idle time then you have no other choice other than implementing TMOUT in every other application or write application which can monitor stdin/stdout of each tty and kill the process if these handles are not modified within specified time.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 06:23 PM
тАО10-03-2005 06:23 PM
Re: TMOUT - my understanding (and its effectiveness)
A more good thread on TMOUT:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=961132
hth.