- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is there an auto-logout setting for TELNET
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
08-08-2001 01:04 PM
08-08-2001 01:04 PM
the reason for that is: sometime, when I leave a telnet session idle for some time, then it would be logged off by the remote server automatically, I don't know the reason.
Any comment on the breaking of telnet connection is appreciate.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:10 PM
08-08-2001 01:10 PM
SolutionYou simply need to set the the TMOUT variable in the user .profile; the shell will then exit and thus log off a telnet user.
in the user's .profile
export TMOUT=30
to logoff after 30 minutes of inactivity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:12 PM
08-08-2001 01:12 PM
Re: Is there an auto-logout setting for TELNET
Yes, if the shell variable TMOUT is set greater than zero (0). Then, this will cause the shell to terminate if a command is not entered within TMOUT number of seconds after issuing the PS1 prompt.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:32 PM
08-08-2001 01:32 PM
Re: Is there an auto-logout setting for TELNET
So, in terms of TMOUT, it's the same effect on telnet as with local terminals?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:38 PM
08-08-2001 01:38 PM
Re: Is there an auto-logout setting for TELNET
The real answer is that the shell is the same and when it exits the underlying daemon (in this case telnetd) responds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:40 PM
08-08-2001 01:40 PM
Re: Is there an auto-logout setting for TELNET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 06:58 PM
08-08-2001 06:58 PM
Re: Is there an auto-logout setting for TELNET
readonly TMOUT=3600
NOTE: not even root can change a readonly env variable in the shell. User timeouts should probably be longer than root (root should have a short, 15-60 minutes).
But most important, the shell does the counting! So if the user starts a subprocess, for example: vi then the counting stops because the shell is not running. When vi terminates, the shell starts counting all over again.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:37 AM
08-09-2001 07:37 AM
Re: Is there an auto-logout setting for TELNET
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 10:11 PM
01-19-2005 10:11 PM
Re: Is there an auto-logout setting for TELNET
Anyone can please tell me where the autologout variable set. I couldn't find it in .profile.
Thanks
Sreejith M