<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Terminate idle login in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189891#M9813</link>
    <description>Or use the w command, grep the idle timeouts of more then 2 hours. This will lead to the tty being used. Then you can kill all processes running on that tty.&lt;BR /&gt;&lt;BR /&gt;w | awk '$4 ~ /[2-9]:[0-9]*/ {print $2}&lt;BR /&gt;$4 ~ /[0-9][0-9][0-9]*:[0-9]*/ {print $2}'&lt;BR /&gt;&lt;BR /&gt;This will give the ttys with idle times of at least 2 hours.&lt;BR /&gt;Now you can use ps -t&lt;TTY&gt; to get processes running there and kill those... Or just: fuser -k /dev/&lt;TTY&gt; should do the trick.&lt;/TTY&gt;&lt;/TTY&gt;</description>
    <pubDate>Thu, 12 Feb 2004 08:13:33 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2004-02-12T08:13:33Z</dc:date>
    <item>
      <title>Terminate idle login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189889#M9811</link>
      <description>Our HP UX system limited the no. of user login , could suggest how to terminate the idle login ( eg. 2 hours ) ? could anyone post the script for reference ? Thx.</description>
      <pubDate>Thu, 12 Feb 2004 02:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189889#M9811</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-02-12T02:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate idle login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189890#M9812</link>
      <description>In the users .profile or in /etc/profile add&lt;BR /&gt; &lt;BR /&gt;"export TMOUT=xxxx" where xxxx is the number of seconds that user can remain idle without being logged out.</description>
      <pubDate>Thu, 12 Feb 2004 02:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189890#M9812</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-02-12T02:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate idle login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189891#M9813</link>
      <description>Or use the w command, grep the idle timeouts of more then 2 hours. This will lead to the tty being used. Then you can kill all processes running on that tty.&lt;BR /&gt;&lt;BR /&gt;w | awk '$4 ~ /[2-9]:[0-9]*/ {print $2}&lt;BR /&gt;$4 ~ /[0-9][0-9][0-9]*:[0-9]*/ {print $2}'&lt;BR /&gt;&lt;BR /&gt;This will give the ttys with idle times of at least 2 hours.&lt;BR /&gt;Now you can use ps -t&lt;TTY&gt; to get processes running there and kill those... Or just: fuser -k /dev/&lt;TTY&gt; should do the trick.&lt;/TTY&gt;&lt;/TTY&gt;</description>
      <pubDate>Thu, 12 Feb 2004 08:13:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/terminate-idle-login/m-p/3189891#M9813</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-02-12T08:13:33Z</dc:date>
    </item>
  </channel>
</rss>

