LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2012, 05:54 AM   #1
ayush.jain
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: SUSE
Posts: 9

Rep: Reputation: Disabled
connection timed out waiting for input: auto-logout : $TMOUT


Hi Guys,

Am little new to Linux.

I have changed the value of $TMOUT to 0 so that it never times out in case ssh connection is left idle for that machine.
It worked fine, but as soon as I restarted the machine it got reverted to 600 seconds.
Please let me know if am doing it the right way or there's something else required to disable auto-logout?

Regards,
Ayush
 
Old 10-26-2012, 03:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ayush.jain View Post
I have changed the value of $TMOUT (..) but as soon as I restarted the machine it got reverted
Depends on where you set it. Global modifications should be in /etc/, probably /etc/profile.d/<yourvariable>.<shellextension>, for example executable shell script "/etc/profile.d/tmout.sh":
Code:
[ -e /etc/login.defs ] && MIN_UID=$(awk '/^UID_MIN/ {print $2}' /etc/login.defs)
[ `id -u` -ge ${MIN_UID:=500} ] && { TMOUT=0; export TMOUT; }
or the shorter, less accurate:
Code:
TMOUT=0; export TMOUT
*also see 'screen' and 'autossh'.
 
1 members found this post helpful.
Old 10-30-2012, 02:25 AM   #3
ayush.jain
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: SUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
Got your point unSpawn!
Thanks for your quick reply..

Regards,
Ayush
 
Old 08-24-2014, 01:24 AM   #4
e.adenwala
LQ Newbie
 
Registered: Aug 2014
Posts: 5

Rep: Reputation: Disabled
In my case, the TMOUT is set as readonly.
What should I do as not to get kicked out after TMOUT (15 minutes) expires?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IDLEOUT , TMOUT --> Logout users of a specified period of idle time. barnarasta Linux - Newbie 8 10-02-2012 06:53 PM
timeout waiting for input during Draining Input HammerHed Linux - Newbie 1 11-01-2008 05:35 AM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM
Sendmail: timeout waiting for input from local during Draining Input andrewstr Linux - Software 0 07-14-2004 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration