Is there a way to auto logoff inactive local open sessions ? Thanks :-) -- ______________________________________________________________ «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»«¤»¥«¤»§«¤»¥«¤» ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ CODALIS SA www.codalis.ch 17, rue de la Fontenette, CAROUGE TEL : +41 22 827 30 30 FAX : +41 22 827 30 33 ______________________________________________________________ «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»«¤»¥«¤»§«¤»¥«¤» ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
On Fri, 2005-01-21 at 09:59, Guido Tschakert wrote:
Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ?
Thanks :-)
Try idled
cheers guido
thanks will try it...but what about ssh sessions ? I've added in /etc/ssh/sshd_config : ClientAliveInterval 200 ClientAliveCountMax 3 According to man sshd_config, it should close an idle ssh session after 600 secs (10 mins) but it seems ineffective, why ? -- ______________________________________________________________ «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»«¤»¥«¤»§«¤»¥«¤» ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ CODALIS SA www.codalis.ch 17, rue de la Fontenette, CAROUGE TEL : +41 22 827 30 30 FAX : +41 22 827 30 33 ______________________________________________________________ «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»«¤»¥«¤»§«¤»¥«¤» ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Miguel Albuquerque wrote:
On Fri, 2005-01-21 at 09:59, Guido Tschakert wrote:
Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ?
Thanks :-)
Try idled
cheers guido
thanks will try it...but
what about ssh sessions ? I've added in /etc/ssh/sshd_config :
ClientAliveInterval 200 ClientAliveCountMax 3
According to man sshd_config, it should close an idle ssh session after 600 secs (10 mins) but it seems ineffective, why ?
Hello Miguel, I don't know about these ssh configs but idled logs out every kind of session except graphical logins (like kde and gnome). A normal ssh session will be closed by idled. cheers guido
Guido, On Friday 21 January 2005 03:12, Guido Tschakert wrote:
Miguel Albuquerque wrote:
On Fri, 2005-01-21 at 09:59, Guido Tschakert wrote:
Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ?
Thanks :-)
Try idled
cheers guido
...
Hello Miguel,
I don't know about these ssh configs but idled logs out every kind of session except graphical logins (like kde and gnome). A normal ssh session will be closed by idled.
From what I can tell from the documentation and the comments in the supplied default configuration file, idled only acts on shell sessions but will not affect, say, secure FTP sessions. Am I right about that? If so, is there a way to also get idle timeouts for remote, non-shell sessions? I have a remote user who typically has both a shell and a secure FTP session and who routinely forgets to log out of either before shutting down his computer. These sessions sit around forever and require manual cleanup and it would be nice to get automatic termination for them all.
cheers guido
Randall Schulz
On Jan 21, Miguel Albuquerque <mfoacs@e-workshop.ch> wrote:
On Fri, 2005-01-21 at 09:59, Guido Tschakert wrote:
Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ? Try idled
thanks will try it...but
what about ssh sessions ? I've added in /etc/ssh/sshd_config :
ClientAliveInterval 200 ClientAliveCountMax 3 This is just for the connection layer, to prevent the session to time out (e.g. when going over NAT firewalls). So in fact, this is to PREVENT a connection to close.
Markus
Hi, On Fri, Jan 21, Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ?
Thanks :-)
Try idled
I use the bash builtin auto logoff. If you export the Variable "TMOUT" with a value in seconds, then the session will automaticly closed after that inactive time. You can put it in your .profile or .bashrc or ... -- Gruß Dieter -- I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the From field.
Dieter Bloms wrote:
Hi,
On Fri, Jan 21, Miguel Albuquerque wrote:
Is there a way to auto logoff inactive local open sessions ?
Thanks :-)
Try idled
I use the bash builtin auto logoff. If you export the Variable "TMOUT" with a value in seconds, then the session will automaticly closed after that inactive time. You can put it in your .profile or .bashrc or ...
You must set it as root and set it to readonly, otherwise the user may reset it to 0 (no timeout). /etc/profile is a good place. TMOUT=10 readonly TMOUT -- Until later, Geoffrey
participants (6)
-
Dieter Bloms
-
Geoffrey
-
Guido Tschakert
-
Markus Gaugusch
-
Miguel Albuquerque
-
Randall R Schulz