<?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: Maximum idle time on system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598142#M33728</link>
    <description>If you are just talking about "telnet/rlogin" sessions, you can set TMOUT value in /etc/profile and make it readonly so that the users cannot alter it. Their sessions will timeout after the value you set. You don't need to write any script.&lt;BR /&gt;&lt;BR /&gt;If you are talking about other sessions, your application should take care of it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Fri, 19 Oct 2001 19:54:04 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2001-10-19T19:54:04Z</dc:date>
    <item>
      <title>Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598138#M33724</link>
      <description>I'm curious if anyone can advise me whether it is advisable to automate removing users off your systems after a certain amount of idle time, and if so, how you did it.  I typically have certain user that will log on and have over 3 hours of idle time.  I realize that simply having a shell running won't take that many resources, but I'd like to get some input from others.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Joe Robinson</description>
      <pubDate>Fri, 19 Oct 2001 18:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598138#M33724</guid>
      <dc:creator>Joe Robinson_2</dc:creator>
      <dc:date>2001-10-19T18:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598139#M33725</link>
      <description>It depends upon your applications. If they are in the middle of a transaction, and they get called away from their desk to work on an emergency, and then come back and find out they were logged off, then they probably won't be to happy. I'd ask the developers to put in a timeout into the application at points where it makes sense. These places would be when the user is at a menu, in a read-only situation, etc...&lt;BR /&gt;&lt;BR /&gt;It's always important not to fustrate the users, because most of them put the butter on our bread. A lot of it can be done through education of the users.&lt;BR /&gt;&lt;BR /&gt;If the users are at a unix prompt, then you can wack them by setting TMOUT, but make sure to set it as a readonly variable, as some will soon lean how to defeat it. But then again, I always advise against having "normal" users, that's those that aren't DBA's or SA's at any unix prompt.&lt;BR /&gt;&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;live free or die</description>
      <pubDate>Fri, 19 Oct 2001 18:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598139#M33725</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-19T18:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598140#M33726</link>
      <description>As was mentioned you can set in the users .profile the TMOUT variable and then they will be logged out.  &lt;BR /&gt;Now some folks don't like that.  And I understand that.  But if you are running a system with hundreds upon hundreds users than you can't let a bunch of 'doing nothing' users tie up resources.  So in certain cases, I do kill these kinds of users.&lt;BR /&gt;BUT BEWARE....as was said you may face the 'ire of these users.  And you must be ABOSOLUTELY CERTAIN you only kill the right ones.&lt;BR /&gt;In this shop we get rid of idle sessions on dial ups.  We can identify these users in two ways. First they always show as wc_x_ _ _ so we can grep for this...Second they always have login id's in ALL CAPS, again we can grep for this.  Now this makes certain that we are ONLY KILLING outside dial up connections.  And we do a simple kill, not a silver bullet. So it's a kinder to the end users processes.  Here's the script we wrote here:&lt;BR /&gt;&lt;BR /&gt;rm /scripts/who.remove&lt;BR /&gt;who -u | grep wc_x &amp;gt; /scripts/who.out&lt;BR /&gt;awk ' BEGIN [&lt;BR /&gt;  while ( "cat /scripts/who.out" | getline ) {&lt;BR /&gt;  entries++&lt;BR /&gt;    if ( $1 ~ "[A-Z] &amp;amp;&amp;amp; $6 &amp;gt; "1:00" )&lt;BR /&gt;     print $1, $7 }&lt;BR /&gt;   } ' &amp;gt;&amp;gt; /scripts/who.remove&lt;BR /&gt;kpid=`cat /scripts/who.remove | awk '{print $2}'`&lt;BR /&gt;kill $kpid&lt;BR /&gt;&lt;BR /&gt;Then we set this up to cron hourly.  So far, it works fairly well for us...and keeps these pesky dial ups from hanging on the line doing nothin !  &lt;BR /&gt;Hope this gives you some ideas,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;..hope my typing is solid too...it's Friday and I am so ready for w/e</description>
      <pubDate>Fri, 19 Oct 2001 19:01:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598140#M33726</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-10-19T19:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598141#M33727</link>
      <description>..oops that [ after BEGIN should be a {  ...&lt;BR /&gt;&lt;BR /&gt;arghghghgh typing tired !&lt;BR /&gt;&lt;BR /&gt;Rita</description>
      <pubDate>Fri, 19 Oct 2001 19:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598141#M33727</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-10-19T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598142#M33728</link>
      <description>If you are just talking about "telnet/rlogin" sessions, you can set TMOUT value in /etc/profile and make it readonly so that the users cannot alter it. Their sessions will timeout after the value you set. You don't need to write any script.&lt;BR /&gt;&lt;BR /&gt;If you are talking about other sessions, your application should take care of it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 19 Oct 2001 19:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598142#M33728</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-19T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598143#M33729</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;As the others have mentioned setting TMOUT will do part of this. There is a more important reason than system resources for forcing logout of idle sessions - security. It is normally a BAD thing to have a terminal session open so that someone can come by and do who knows what. Even DBA's who ABSOLUTELY POSITIVELY MUST NOT be logged out can be taught to use nohup and why it is even their friend especially over remote connections. Generally, a small baseball bat suffices for this lesson.&lt;BR /&gt;&lt;BR /&gt;My 3 cents, Clay &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2001 20:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598143#M33729</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-19T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598144#M33730</link>
      <description>Hi Joe&lt;BR /&gt;&lt;BR /&gt;As well as all of the above I would suggest that you pre-warn your users that a timeout is going to be put in place and give them a couple of weeks to put their reasons if any as to why they think it will cause problems.&lt;BR /&gt;&lt;BR /&gt;Find options for them and then implement your plan.&lt;BR /&gt;&lt;BR /&gt;Document all the way so that if problems occur once the timeout is in place you can show that users had an opportunity to voice their opinions and what you did to help.&lt;BR /&gt;&lt;BR /&gt;Keeping users happy keeps management happy which more than helps when we ask for pay raises and courses.&lt;BR /&gt;&lt;BR /&gt;;-)&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Oct 2001 10:06:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598144#M33730</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-10-20T10:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum idle time on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598145#M33731</link>
      <description>Just wanted to put in my two cents regarding knocking out users.  I used to set the TMOUT variable to 3hrs, but soon enough pple complained that I just removed it.  But I never got concensus on what a proper timeout should be and now I have the opposite problem, i.e. ppl logged in for 4-5 days.  Mind you, they're not totally idle sessions, just that they're too lazy to log out of the system.  &lt;BR /&gt;I think its absolutely necessary to timeout special accounts, include oracle.  There should be no reason why these users should have more than 1 1/2 idle time....but again, that's just my opinion.&lt;BR /&gt;&lt;BR /&gt;-Santos</description>
      <pubDate>Sat, 20 Oct 2001 15:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-idle-time-on-system/m-p/2598145#M33731</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-20T15:20:43Z</dc:date>
    </item>
  </channel>
</rss>

