<?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: Kill dead login in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097041#M30616</link>
    <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;"Second your limit script can provide the user the choice of terminating the old session. User larry for example hung. His session is active. User larry is perfectly empowered to issue a kill on his previous process under all circumstances" ,&lt;BR /&gt;&lt;BR /&gt;can advise the script to terminating the old session ?&lt;BR /&gt;&lt;BR /&gt;thx</description>
    <pubDate>Mon, 05 Nov 2007 04:25:45 GMT</pubDate>
    <dc:creator>ust3</dc:creator>
    <dc:date>2007-11-05T04:25:45Z</dc:date>
    <item>
      <title>Kill dead login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097039#M30614</link>
      <description>we are running Redhat server , sometimes user's login will be disconnected because unable network ( or other unexpected reason ) , then they can't login again ( because we control all user only have ONE login at the same time ) in a short time , they have to wait the system logout the dead connection , can advise how to let the user can logout the previous dead connection rather than waiting the system log them out ? I have read some relevant before , Redhat seems have build-in function to solve it , can advise how to set it ? thx.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Nov 2007 03:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097039#M30614</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-05T03:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Kill dead login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097040#M30615</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;First, try setting the parameter TMOUT in the user profile. This will time out idle sessions not in any application.&lt;BR /&gt;&lt;BR /&gt;Second your limit script can provide the user the choice of terminating the old session. User larry for example hung. His session is active. User larry is perfectly empowered to issue a kill on his previous process under all circumstances.&lt;BR /&gt;&lt;BR /&gt;So.&lt;BR /&gt;&lt;BR /&gt;echo "You are already logged in. Do you want to close your previous session?:"&lt;BR /&gt;read yesno&lt;BR /&gt;&lt;BR /&gt;If the user answers yes, issue a kill for the process ID the script that limits logins has clearly identified.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 05 Nov 2007 04:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097040#M30615</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-11-05T04:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kill dead login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097041#M30616</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;"Second your limit script can provide the user the choice of terminating the old session. User larry for example hung. His session is active. User larry is perfectly empowered to issue a kill on his previous process under all circumstances" ,&lt;BR /&gt;&lt;BR /&gt;can advise the script to terminating the old session ?&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Mon, 05 Nov 2007 04:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097041#M30616</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-05T04:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kill dead login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097042#M30617</link>
      <description>ussername=larry&lt;BR /&gt;PID=(ps -ef | grep $username awk '{print $2}')&lt;BR /&gt;kill $PID&lt;BR /&gt;&lt;BR /&gt;On its simplest level.&lt;BR /&gt;&lt;BR /&gt;Show me the code you use (not the whole script) to determine how many logins a user has.&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep is inferior to:&lt;BR /&gt;UNIX95=1&lt;BR /&gt;ps -C $username&lt;BR /&gt;&lt;BR /&gt;But the new code takes time to test.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Nov 2007 05:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097042#M30617</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-11-05T05:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kill dead login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097043#M30618</link>
      <description>thx Steven , &lt;BR /&gt;&lt;BR /&gt;I hv modified the /etc/profile to check the no. of user login and control the user login , but the coding is not good , so can advise is there any existing function in Redhat or linux system to control the no. of user login ? if yes , is it OK to merge the function with your script ? thx in advance.</description>
      <pubDate>Mon, 05 Nov 2007 05:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kill-dead-login/m-p/4097043#M30618</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-05T05:54:34Z</dc:date>
    </item>
  </channel>
</rss>

