<?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: Enforcing shell timeout? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042420#M303216</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;additionally you should check the setting of a user-timeout not being zero: This could mean NO timeout in some shells!&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;PS: Of course you could permit this as a 'feature'...</description>
    <pubDate>Wed, 25 Jul 2007 01:49:23 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2007-07-25T01:49:23Z</dc:date>
    <item>
      <title>Enforcing shell timeout?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042416#M303212</link>
      <description>Does anyone have a creative &amp;amp; elegant way of enforcing shell timeouts for users?&lt;BR /&gt;&lt;BR /&gt;Currently I'm doing it by executing 'typeset -r TMOUT=&lt;SECONDS&gt;' in the /etc/profile.  This prevents the user from unsetting the TMOUT variable, or from editing their own .profile and changing it.&lt;BR /&gt;&lt;BR /&gt;Unfortunately it also prevents them from specifying a shorter timeout, if they wish to do so.  Plus, it seems to conflict with certain apps that try to modify it.&lt;/SECONDS&gt;</description>
      <pubDate>Tue, 24 Jul 2007 04:05:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042416#M303212</guid>
      <dc:creator>Alex Georgiev</dc:creator>
      <dc:date>2007-07-24T04:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing shell timeout?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042417#M303213</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;you'll have to use some scripting.&lt;BR /&gt;I would look for an optional config file ~/.tmout&lt;BR /&gt;where the user could specify something like&lt;BR /&gt;TMOUT=nnn&lt;BR /&gt;&lt;BR /&gt;and in /etc/profile use something like this:&lt;BR /&gt;tmout_default=1024&lt;BR /&gt;if [ -s $HOME/.tmout ]&lt;BR /&gt;then&lt;BR /&gt;   usrtmout=$(awk -F= '$1=="TMOUT" {print $2}' $HOME/.tmout)&lt;BR /&gt;   [ "$usrtmout" -gt $tmout_default ] &amp;amp;&amp;amp; unset usrtmout&lt;BR /&gt;if &lt;BR /&gt;typeset -r TMOUT=${usrtmout:-$tmout_default}&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 24 Jul 2007 07:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042417#M303213</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-07-24T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing shell timeout?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042418#M303214</link>
      <description>Yes, that's a good idea.  A ~/.tmout would work.&lt;BR /&gt;&lt;BR /&gt;Any other ideas for how to do that?&lt;BR /&gt;&lt;BR /&gt;P.S.  Something that went though my mind is to compile the shell from source, but edit the source code beforehand and hard code a maximum value in there.  The problem with that is that I might only be able to do it for bash &amp;amp; tcsh, since I'm not sure if I can find the source for the HP-UX ksh &amp;amp; dtksh.&lt;BR /&gt;&lt;BR /&gt;Also, there's alway the possibility that I'll mess up and create bugs.  Haven't done any serious coding in a while...</description>
      <pubDate>Tue, 24 Jul 2007 18:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042418#M303214</guid>
      <dc:creator>Alex Georgiev</dc:creator>
      <dc:date>2007-07-24T18:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing shell timeout?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042419#M303215</link>
      <description>Hi Alex:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Something that went though my mind is to compile the shell from source, but edit the source code beforehand and hard code a maximum value in there. The problem with that is that I might only be able to do it for bash &amp;amp; tcsh, since I'm not sure if I can find the source for the HP-UX ksh &amp;amp; dtksh.&lt;BR /&gt;&lt;BR /&gt;You won't be able to obtain the source for HP-UX released versions.&lt;BR /&gt;&lt;BR /&gt;That aside, I've "been-there-done-that" in "another life" many years ago.  As a then mainframe systems programmer I had source code and was used to developing patches as work-arounds and customizations.  The problem was always re-engineering the patch and re-certifying it as new releases and vendor-supplied enhancements appeared.&lt;BR /&gt;&lt;BR /&gt;Put your creative efforts to use in another way.  Peter's suggestion is a good one.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 18:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042419#M303215</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-24T18:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing shell timeout?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042420#M303216</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;additionally you should check the setting of a user-timeout not being zero: This could mean NO timeout in some shells!&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;PS: Of course you could permit this as a 'feature'...</description>
      <pubDate>Wed, 25 Jul 2007 01:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/enforcing-shell-timeout/m-p/4042420#M303216</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-07-25T01:49:23Z</dc:date>
    </item>
  </channel>
</rss>

