<?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: Inactivity Logout in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681570#M382591</link>
    <description>&amp;gt;Jim: The 60 second warning does not appear if I'm using bash but the session terminates all the same!&lt;BR /&gt;&lt;BR /&gt;So , 60 seconds is something hard coded OR default in somewhere as countdown to the termination ?</description>
    <pubDate>Thu, 02 Sep 2010 07:30:50 GMT</pubDate>
    <dc:creator>Hakki Aydin Ucar</dc:creator>
    <dc:date>2010-09-02T07:30:50Z</dc:date>
    <item>
      <title>Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681560#M382581</link>
      <description>Using CDE and running HP-UX 11.11 on J6750 workstation, I want to make accounts log totally off after a certain period of inactivity.  Currently the terminal locks and requires other users to use the root password to unlock, which presents its’ own set of problems. Getting users to act responsibility is out of the question. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Aug 2010 13:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681560#M382581</guid>
      <dc:creator>Fred K. Abell Jr._1</dc:creator>
      <dc:date>2010-08-31T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681561#M382582</link>
      <description>In a real shell, you can set TMOUT to log it out after that many idle seconds.</description>
      <pubDate>Tue, 31 Aug 2010 15:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681561#M382582</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-31T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681562#M382583</link>
      <description>Shalom Fred,&lt;BR /&gt;&lt;BR /&gt;TMOUT will work for shell sessions that are idle.&lt;BR /&gt;&lt;BR /&gt;Once an app is fired up, the app needs to take care of this function.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 31 Aug 2010 17:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681562#M382583</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-08-31T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681563#M382584</link>
      <description>As an example by default;&lt;BR /&gt;&lt;BR /&gt;# echo $TMOUT&lt;BR /&gt;0&lt;BR /&gt;# export TMOUT=5&lt;BR /&gt;# echo $TMOUT   &lt;BR /&gt;5&lt;BR /&gt;# &lt;BR /&gt;Shell will time out in 60 seconds.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2010 07:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681563#M382584</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-01T07:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681564#M382585</link>
      <description>Hi Fred:&lt;BR /&gt;&lt;BR /&gt;TMOUT:&lt;BR /&gt;&lt;BR /&gt;You can configure the TMOUT variable to automatically lock inactive terminals.&lt;BR /&gt;If you use other systems often and if you copy the .profile file from one system to&lt;BR /&gt;another, then adding the TMOUT variable to the .profile is more convenient. If you&lt;BR /&gt;typically stay on one system, then either method of locking the terminal can be used.&lt;BR /&gt;To configure the TMOUT variable, edit the .profile file as shown in the following:&lt;BR /&gt;# vi ~/.profile&lt;BR /&gt;export TMOUT=600 # (lock after 600 seconds of inactivity)&lt;BR /&gt;You can change the 600 to another desired value.&lt;BR /&gt;&lt;BR /&gt;CDE LOCK:&lt;BR /&gt;You can configure the CDE lock manager to lock your screen after a certain amount of&lt;BR /&gt;inactive time. To configure the CDE lock manager to lock the screen after 10 minutes&lt;BR /&gt;of inactive time, enter the following commands:&lt;BR /&gt;&lt;BR /&gt;# cp /usr/dt/config/C/sys.resources /etc/dt/config/C/sys.resources&lt;BR /&gt;# vi /etc/dt/config/C/sys.resources&lt;BR /&gt;dtsession*lockTimeout: 10&lt;BR /&gt;&lt;BR /&gt;You can also use the Style Manager task panel to adjust the CDE lock manager. To do&lt;BR /&gt;this, click on the screen icon.&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2010 08:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681564#M382585</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-09-01T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681565#M382586</link>
      <description>&lt;!--!*#--&gt;When you're using CDE, the inactivity logout is trickier to implement, because there isn't necessarily any terminals active. Also you'd want to logout the entire CDE session, not just the terminals.&lt;BR /&gt;&lt;BR /&gt;If you send a "kill -HUP" to the user's dtsession process, that should kill the entire CDE session in a controlled fashion.&lt;BR /&gt;&lt;BR /&gt;I don't have a workstation system available right now so I cannot check... but if the screen saver/locker causes a recognizable process to appear when it's active, it might be possible to use it as "inactivity indicator", so a relatively simple script or program should be able to detect the sessions that have been inactive for too long.&lt;BR /&gt;&lt;BR /&gt;Pseudo-code:&lt;BR /&gt;&lt;BR /&gt;if (there is a dtsession process running) {&lt;BR /&gt;    identify the user running the session&lt;BR /&gt;    if (the session has a screensaver running) {&lt;BR /&gt;        find the start time of the screensaver process&lt;BR /&gt;        screensaver.runtime = current_time - screensaver.starttime&lt;BR /&gt;        if (screensaver.runtime &amp;gt; inactivity limit) {&lt;BR /&gt;            kill -HUP &lt;DTSESSION process=""&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;MK&lt;/DTSESSION&gt;</description>
      <pubDate>Wed, 01 Sep 2010 08:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681565#M382586</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-09-01T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681566#M382587</link>
      <description>&amp;gt;Hakki: export TMOUT=5&lt;BR /&gt;&amp;gt;Shell will time out in 60 seconds.&lt;BR /&gt;&lt;BR /&gt;That's 5 seconds.</description>
      <pubDate>Thu, 02 Sep 2010 05:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681566#M382587</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-02T05:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681567#M382588</link>
      <description>&amp;gt;Dennis: &amp;gt;&amp;gt;Hakki: export TMOUT=5&lt;BR /&gt;&amp;gt;&amp;gt;Shell will time out in 60 seconds.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;That's 5 seconds.&lt;BR /&gt;&lt;BR /&gt;Yes , it is weird, is there any other parameter to set minimum timeout like 60 seconds ??&lt;BR /&gt;&lt;BR /&gt;$ uname -a&lt;BR /&gt;HP-UX igui01 B.11.11 U 9000/800 1889900691 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;$ export TMOUT=1 &lt;BR /&gt;$ &lt;BR /&gt;shell time out in 60 seconds&lt;BR /&gt;$ export TMOUT=61&lt;BR /&gt;$ echo $TMOUT&lt;BR /&gt;61&lt;BR /&gt;$ &lt;BR /&gt;shell time out in 60 seconds&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2010 05:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681567#M382588</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-02T05:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681568#M382589</link>
      <description>&amp;gt;Hakki: it is weird, is there any other parameter to set minimum timeout like 60 seconds?&lt;BR /&gt;&lt;BR /&gt;Hmm, you're saying it doesn't work as documented?&lt;BR /&gt;I suppose we could use tusc to see how it works.</description>
      <pubDate>Thu, 02 Sep 2010 06:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681568#M382589</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-02T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681569#M382590</link>
      <description>I've run some experiments on an 11.23 server and it appears, to me, that the value of TMOUT works as fiollows:&lt;BR /&gt;&lt;BR /&gt;export TMOUT=120&lt;BR /&gt;&lt;BR /&gt;after an elapse of about two minute I get the... &lt;BR /&gt;&lt;BR /&gt;Shell will time out in 60 seconds.&lt;BR /&gt;&lt;BR /&gt;...prompt.  A minute later the session disconnects.&lt;BR /&gt;&lt;BR /&gt;If I interact before the 60 seconds expire, then I get another two minutes before being prompted again.&lt;BR /&gt;&lt;BR /&gt;So, from my observation it seems to work, more or less, as expected.&lt;BR /&gt;&lt;BR /&gt;The 60 second warning does not appear if I'm using bash but the session terminates all the same!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2010 07:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681569#M382590</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2010-09-02T07:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681570#M382591</link>
      <description>&amp;gt;Jim: The 60 second warning does not appear if I'm using bash but the session terminates all the same!&lt;BR /&gt;&lt;BR /&gt;So , 60 seconds is something hard coded OR default in somewhere as countdown to the termination ?</description>
      <pubDate>Thu, 02 Sep 2010 07:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681570#M382591</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-02T07:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681571#M382592</link>
      <description>I haven't done an accurate timing for bash... but what appeared to happen was that after between two and three minutes the session terminated without warning.&lt;BR /&gt;&lt;BR /&gt;In the sh-posix case it appears to emit the warning 60 seconds after the $TMOUT period has elapsed and then terminate 60 seconds after the warning.&lt;BR /&gt;&lt;BR /&gt;I'll do a better timing with bash to confirm.</description>
      <pubDate>Thu, 02 Sep 2010 08:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681571#M382592</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2010-09-02T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681572#M382593</link>
      <description>OK!  Here is the session log for bash:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;First: Call ssh and prime a call on date for when we return&lt;BR /&gt;&lt;BR /&gt;[jimw@jimwpc3 ~]$ ssh pocuast2;date&lt;BR /&gt;Last login: Thu Sep  2 20:02:24 2010 from 10.81.105.17&lt;BR /&gt;Value of TERM has been set to "xterm".&lt;BR /&gt;WARNING:  YOU ARE SUPERUSER !!&lt;BR /&gt;[root@pocuast2 /root ] exec bash&lt;BR /&gt;[root@pocuast2 root] date;export TMOUT=120&lt;BR /&gt;Thu Sep  2 21:05:57 NZST 2010&lt;BR /&gt;[root@pocuast2 root]&lt;BR /&gt;[root@pocuast2 root] timed out waiting for input: auto-logout&lt;BR /&gt;Connection to pocuast2 closed.&lt;BR /&gt;Thu Sep  2 21:08:00 NZST 2010&lt;BR /&gt;[jimw@jimwpc3 ~]$&lt;BR /&gt;&lt;BR /&gt;As you can see, the total duration was about a little over TWO minutes.&lt;BR /&gt;&lt;BR /&gt;Next I logged a sh-posix session:&lt;BR /&gt;&lt;BR /&gt;[jimw@jimwpc3 ~]$ ssh pocuast2;date&lt;BR /&gt;Last login: Thu Sep  2 21:05:13 2010 from 10.81.105.17&lt;BR /&gt;Value of TERM has been set to "xterm".&lt;BR /&gt;WARNING:  YOU ARE SUPERUSER !!&lt;BR /&gt;[root@pocuast2 /root ] date;export TMOUT=120&lt;BR /&gt;Thu Sep  2 21:17:24 NZST 2010&lt;BR /&gt;[root@pocuast2 /root ]&lt;BR /&gt;Shell will time out in 60 seconds.&lt;BR /&gt;sh: Timed out waiting for input.&lt;BR /&gt;Connection to pocuast2 closed.&lt;BR /&gt;Thu Sep  2 21:20:24 NZST 2010&lt;BR /&gt;[jimw@jimwpc3 ~]$&lt;BR /&gt;&lt;BR /&gt;As you can see, POSIX shell users get a wrning and an extra 60 seconds ;O)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2010 08:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681572#M382593</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2010-09-02T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681573#M382594</link>
      <description>&amp;gt;Jim: Shell will time out in 60 seconds.&lt;BR /&gt;&amp;gt;...prompt. A minute later the session disconnects.&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Hakki: 60 seconds is something hard coded&lt;BR /&gt;&lt;BR /&gt;TGRACE is hard coded as 60.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Jim: In the sh-posix case it appears to emit the warning 60 seconds after the $TMOUT period has elapsed and then terminate 60 seconds after the warning.&lt;BR /&gt;&lt;BR /&gt;My experiments with real shells indicate you get TMOUT, then you get a 60 grace period.  Then:&lt;BR /&gt;sh: Timed out waiting for input.</description>
      <pubDate>Fri, 03 Sep 2010 05:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681573#M382594</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-03T05:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inactivity Logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681574#M382595</link>
      <description>&amp;gt;Dennis: TGRACE is hard coded as 60.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Jim: &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;My experiments with real shells indicate you get TMOUT, then you get a 60 grace period. Then:&lt;BR /&gt;sh: Timed out waiting for input.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So , Timeout gracely manner is valid for POSIX and other shells like KSH;&lt;BR /&gt;&lt;BR /&gt;# ksh&lt;BR /&gt;# echo $0&lt;BR /&gt;ksh&lt;BR /&gt;# export TMOUT=5&lt;BR /&gt;# &lt;BR /&gt;shell time out in 60 seconds&lt;BR /&gt;((AFTER 60 seconds, because I changed my shell from POSIX to ksh,otherwise it would be terminated))&lt;BR /&gt;ksh: timed out waiting for input&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Sep 2010 06:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactivity-logout/m-p/4681574#M382595</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-03T06:47:13Z</dc:date>
    </item>
  </channel>
</rss>

