<?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: Force logout after a period of inactivity in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652922#M804972</link>
    <description>I did put a dummy echo at the very end of the .cshrc file. It correctly shows up upon a login.&lt;BR /&gt;&lt;BR /&gt;That rules out the possibility of an exit before the autologout setting is done.&lt;BR /&gt;&lt;BR /&gt;There is no /etc/csh.login  file at all in the system. The developer worked only on the .cshrc file.&lt;BR /&gt;&lt;BR /&gt;What I am puzzled about is where the value 600 for the variable autologout coming from even though it is explicitly set in the .cshrc file.&lt;BR /&gt;Thanks&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Oct 2005 14:29:13 GMT</pubDate>
    <dc:creator>Raj Kairam</dc:creator>
    <dc:date>2005-10-20T14:29:13Z</dc:date>
    <item>
      <title>Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652904#M804954</link>
      <description>I would like a way to force a user session to end as if logged out after a certain period of inactivity.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 19 Oct 2005 10:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652904#M804954</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-19T10:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652905#M804955</link>
      <description>You could add TMOUT=&lt;VALUE in="" seconds=""&gt; to your .kshrc file. This will logout the user if they are idle within the shell, but not sure how to do it within the application without having a script run every minute.&lt;/VALUE&gt;</description>
      <pubDate>Wed, 19 Oct 2005 10:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652905#M804955</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2005-10-19T10:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652906#M804956</link>
      <description>export TMOUT=60 in .profile will logout a user after 60 seconds.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Oz&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2005 10:22:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652906#M804956</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-10-19T10:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652907#M804957</link>
      <description>Only the user's shell can perform this task. You can set a timeout for inactivity at the shell prompt. However, if the user decides to run vi and walk away, the session will stay logged in forever. The value to set is TMOUT for POSIX shell, ksh (and other POSIX compliant shells like bash), or autologout for csh. Set the value based on the shell your users are running. For POSIX shells, /etc/profile will set all logins, or individual .profile (or .kshrc if your users have configured ksh to use that file, etc). TMOUT uses seconds so for a 1 hour inactivity timeout, use:&lt;BR /&gt; &lt;BR /&gt;export TMOUT=3600&lt;BR /&gt; &lt;BR /&gt;In csh, the autologout value is in minutes.</description>
      <pubDate>Wed, 19 Oct 2005 12:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652907#M804957</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-19T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652908#M804958</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;Set the TMOUT value for the system. You can either add it in /etc/profile OR $HOME/.profile. If you add this in /etc/profile the time out value will be same for all users where as in $HOME/.profile , you can set different values for different users. The line to be added is,&lt;BR /&gt;&lt;BR /&gt;export TMOUT=300&lt;BR /&gt;&lt;BR /&gt;This will allow a 300 sec ( 5 mins) in activity and then the session will be disconnected.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Wed, 19 Oct 2005 12:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652908#M804958</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-10-19T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652909#M804959</link>
      <description>The w command will give you the real idle time. I used this information in a script to kill the user process.&lt;BR /&gt;&lt;BR /&gt;As methioned above, if the user leaves a vi open (or something like that), they aren't doing anything, but the TMOUT variable won't disconnect the user.</description>
      <pubDate>Wed, 19 Oct 2005 12:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652909#M804959</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-10-19T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652910#M804960</link>
      <description>There are some options germane to this discussion in the /opt/ssh/etc/ssh_config and /opt/ssh/etc/sshd_config files. Not sure which would take precedence, but thought I'd mention it. Worth a look, maybe.</description>
      <pubDate>Wed, 19 Oct 2005 13:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652910#M804960</guid>
      <dc:creator>Andy Torres</dc:creator>
      <dc:date>2005-10-19T13:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652911#M804961</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have set the TMOUT value in the /etc/profile and after the value the session will be termianted with a message.&lt;BR /&gt;&lt;BR /&gt;If you think the comments/help provided by others have helped you assign points and close this thread.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN</description>
      <pubDate>Wed, 19 Oct 2005 13:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652911#M804961</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2005-10-19T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652912#M804962</link>
      <description>As stated, the TMOUT variable in the profile will do what you are asking. If the user is in vi, or some application (e.g., oracle) then this variable becomes meaningless.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2005 13:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652912#M804962</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-10-19T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652913#M804963</link>
      <description>Thanks to all that replied.&lt;BR /&gt;I entered the following in my .cshrc&lt;BR /&gt;setenv TMOUT 120&lt;BR /&gt;&lt;BR /&gt;After logging in, verified that the variable is set.&lt;BR /&gt;However, I did not see any message to the effect that my session was timed out or any thing like that in the session window even after a few minutes.&lt;BR /&gt;&lt;BR /&gt;Thought some one can explian what I am doing wrong.&lt;BR /&gt;Thanks&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 19 Oct 2005 14:18:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652913#M804963</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-19T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652914#M804964</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;From Bill's posting above:&lt;BR /&gt;&lt;BR /&gt;"The value to set is TMOUT for POSIX shell, ksh (and other POSIX compliant shells like bash), or autologout for csh."&lt;BR /&gt;&lt;BR /&gt;You need to apply "autologout" for csh.&lt;BR /&gt;&lt;BR /&gt;Hope this helps...&lt;BR /&gt;Dwyane</description>
      <pubDate>Wed, 19 Oct 2005 14:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652914#M804964</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2005-10-19T14:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652915#M804965</link>
      <description>When you type the command setenv, you are not using a POSIX shell, you are using csh (not very common) so you use the command:&lt;BR /&gt; &lt;BR /&gt;setenv autologout 2&lt;BR /&gt; &lt;BR /&gt;and now csh will exit after two minutes of idle time.</description>
      <pubDate>Wed, 19 Oct 2005 15:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652915#M804965</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-19T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652916#M804966</link>
      <description>I am using csh and access the system (HP-UX 11) via Hummingbird Exceed installed on my Windows box and also via ssh.&lt;BR /&gt;Added the variable with 'setenv autologout 2' to my .cshrc ( assuming 2 minutes ).&lt;BR /&gt;After I log in and do 'echo $autologout' it shows 600. Even after I change my value to 60 from 2, it still shows 600.&lt;BR /&gt;Is there some other place where this 600 is preset that overrides what ever is entered in my starting .cshrc file?&lt;BR /&gt;I am still unable to force the session after a brief period of inactivity.&lt;BR /&gt;Please advise.</description>
      <pubDate>Thu, 20 Oct 2005 09:56:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652916#M804966</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-20T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652917#M804967</link>
      <description>This is a very common problem with Xwindows. You are not logging in normally and therefore .c shrc is not even being run. When you use Xwindows on a PC, the text window you see is not a program on your PC but is a program running on the HP-UX computer (xterm, dtterm, or hpterm) and the default for Xwindows is to bypass all login profiles (/etc/csh.login and .cshrc for the csh shell). You can verify this by putting something like: echo "starting .cshrc" into your .cshrc and when you login, nothing is displayed.&lt;BR /&gt; &lt;BR /&gt;To fix the problem, use this command after you login:&lt;BR /&gt; &lt;BR /&gt;echo "*loginShell: true" &amp;gt;&amp;gt; $HOME/.Xdefaults&lt;BR /&gt; &lt;BR /&gt;then start a new terminal window. You'll now see all the profile messages (like the copyright) as well as the "starting .cshrc" message. And your autologout variable will now be set and effective.</description>
      <pubDate>Thu, 20 Oct 2005 11:15:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652917#M804967</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-20T11:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652918#M804968</link>
      <description>Thanks for the suggestion about putting loginShell in to $HOME/.Xdefaults&lt;BR /&gt;&lt;BR /&gt;I did that and now I see the copyright stuff in the new text window ( opened by Exceed ).&lt;BR /&gt;&lt;BR /&gt;However, I get 600 for $autologout even though I put 'setenv autologout 2' in my .cshrc.&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;Thanks&lt;BR /&gt;Raj</description>
      <pubDate>Thu, 20 Oct 2005 11:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652918#M804968</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-20T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652919#M804969</link>
      <description>Start by listing possible login profiles for csh:&lt;BR /&gt; &lt;BR /&gt;ls -la $HOME/.cshrc $HOME/.login&lt;BR /&gt; &lt;BR /&gt;.cshrc should have read and execute permissions and owned by your login ID. .login is run after .cshrc, but it sounds like they are not getting run. Verify that by first putting an echo in each file, then login again. To see what happens when your shell actually runs .cshrc, use the source command:&lt;BR /&gt; &lt;BR /&gt;source .cshrc&lt;BR /&gt; &lt;BR /&gt;then display the autologout variable (which will likely be set). csh is quite non-standard as a shell in Unix (except for some programmers), so if you're not tied to a specific shell, you might switch to a more mainstream shell like /usr/bin/sh (HP's POSIX shell) or /usr/bin/ksh. You can change shells at any time with the chsh command:&lt;BR /&gt; &lt;BR /&gt;chsh your_loginID /usr/bin/sh&lt;BR /&gt; &lt;BR /&gt;For sh (which is not Bourne) and ksh, profiles are: /etc/profile and then .profile.</description>
      <pubDate>Thu, 20 Oct 2005 12:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652919#M804969</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-20T12:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652920#M804970</link>
      <description>Thanks again.&lt;BR /&gt;I am forced to use the c shell and the .cshrc was given to us by the developer. There is no .login in $HOME.&lt;BR /&gt;The echo statements in the .cshrc show up fine after logging in. However, the variable always comes out as 600 regardless of what I put in the .cshrc files for my login.&lt;BR /&gt;&lt;BR /&gt;I am totally at a loss.&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Raj</description>
      <pubDate>Thu, 20 Oct 2005 13:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652920#M804970</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-20T13:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652921#M804971</link>
      <description>Ah, .cshrc may be the key. grep for autologout in .cshrc and also /etc/csh.login to see if the developers are setting it for you. Also, put an echo at the bottom of .cshrc to see if you're making it through the entire script. There may be an exit prior to your autologout statement.</description>
      <pubDate>Thu, 20 Oct 2005 14:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652921#M804971</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-20T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652922#M804972</link>
      <description>I did put a dummy echo at the very end of the .cshrc file. It correctly shows up upon a login.&lt;BR /&gt;&lt;BR /&gt;That rules out the possibility of an exit before the autologout setting is done.&lt;BR /&gt;&lt;BR /&gt;There is no /etc/csh.login  file at all in the system. The developer worked only on the .cshrc file.&lt;BR /&gt;&lt;BR /&gt;What I am puzzled about is where the value 600 for the variable autologout coming from even though it is explicitly set in the .cshrc file.&lt;BR /&gt;Thanks&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Oct 2005 14:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652922#M804972</guid>
      <dc:creator>Raj Kairam</dc:creator>
      <dc:date>2005-10-20T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Force logout after a period of inactivity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652923#M804973</link>
      <description>Look for "source" statements in the .cshrc file. Often, login profiles will set common variables by sourcing another script like /etc/oracle.profile or something similar. You can trace .cshrc with:&lt;BR /&gt; &lt;BR /&gt;csh -x .cshrc&lt;BR /&gt; &lt;BR /&gt;and this might help. The key is to look for special programs or scripts inside .cshrc that may be setting autologout.</description>
      <pubDate>Thu, 20 Oct 2005 15:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/force-logout-after-a-period-of-inactivity/m-p/3652923#M804973</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-20T15:43:28Z</dc:date>
    </item>
  </channel>
</rss>

