<?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: readonly environment variables in csh? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882754#M400855</link>
    <description>I just ran the c-shell.&lt;BR /&gt;&lt;BR /&gt;It totally ignored the TMOUT value I have in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Further it ignored my attempts to set it manually.&lt;BR /&gt;&lt;BR /&gt;You may wish to try and set it in the .csh equivalent of .profile.&lt;BR /&gt;&lt;BR /&gt;This probably won't work either.&lt;BR /&gt;&lt;BR /&gt;Note also that TMOUT will not log users out that have an app running. Even something as simple as top will let the user remain logged on indefinitely.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 28 Jan 2005 10:52:32 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2005-01-28T10:52:32Z</dc:date>
    <item>
      <title>readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882753#M400854</link>
      <description>In ksh/posix I can do this in /etc/profile:&lt;BR /&gt;TMOUT=3600&lt;BR /&gt;readonly TMOUT&lt;BR /&gt;export TMOUT&lt;BR /&gt;&lt;BR /&gt;This will prevent users from changing their TMOUT value, and automatically log them out after 1 hour of inactivity.&lt;BR /&gt;The csh equivalent of TMOUT is autologout, but is there a way to make it readonly?</description>
      <pubDate>Fri, 28 Jan 2005 10:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882753#M400854</guid>
      <dc:creator>Gordon  Morrison_1</dc:creator>
      <dc:date>2005-01-28T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882754#M400855</link>
      <description>I just ran the c-shell.&lt;BR /&gt;&lt;BR /&gt;It totally ignored the TMOUT value I have in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Further it ignored my attempts to set it manually.&lt;BR /&gt;&lt;BR /&gt;You may wish to try and set it in the .csh equivalent of .profile.&lt;BR /&gt;&lt;BR /&gt;This probably won't work either.&lt;BR /&gt;&lt;BR /&gt;Note also that TMOUT will not log users out that have an app running. Even something as simple as top will let the user remain logged on indefinitely.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 28 Jan 2005 10:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882754#M400855</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-28T10:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882755#M400856</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For csh, i think this should work.&lt;BR /&gt;&lt;BR /&gt;Disable autologout,&lt;BR /&gt;# set autologout=0&lt;BR /&gt;&lt;BR /&gt;unset the value set for autologout.&lt;BR /&gt;# unset autologout&lt;BR /&gt;&lt;BR /&gt;To set the value to 60 minutes,&lt;BR /&gt;#set autologout=60&lt;BR /&gt;&lt;BR /&gt;this i what i find.&lt;BR /&gt;&lt;BR /&gt;/Quote/&lt;BR /&gt;&lt;BR /&gt;With C shell (csh), the autologout variable is set to 60 minutes by default.  To disable it, you must explicitly unset the variable or set it to 0. Modify /etc/csh.login to change this on a system-wide basis, or modify .cshrc in the user's home directory.  autologout must be specified in all lower-case characters.&lt;BR /&gt;&lt;BR /&gt;/EndQuote/&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jan 2005 11:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882755#M400856</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-01-28T11:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882756#M400857</link>
      <description>Thanks, I found the same man page, What I want to know is, is there a way to prevent users from changing the value of autologout that I set in /etc/csh.login ?</description>
      <pubDate>Fri, 28 Jan 2005 11:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882756#M400857</guid>
      <dc:creator>Gordon  Morrison_1</dc:creator>
      <dc:date>2005-01-28T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882757#M400858</link>
      <description>TMOUT has no effect in csh since csh is unrelated to any POSIX shell. Your csh needs a patch in order to provide the readonly attribute for variables. The way you get the patch put on is to run the following command:&lt;BR /&gt; &lt;BR /&gt;chsh user_name /usr/bin/sh&lt;BR /&gt; &lt;BR /&gt;Now both the readonly attribute and the TMOUT variable will work reliably, and you'll gain access to the world of POSIX shells. For reference: &lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;8-)</description>
      <pubDate>Fri, 28 Jan 2005 12:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882757#M400858</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-01-28T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882758#M400859</link>
      <description>LOL!&lt;BR /&gt;6 points to Bill for making me laugh!:o)&lt;BR /&gt;&lt;BR /&gt;I haven't used csh since I discovered ksh, nor would I go back to it. Unfortunately, I administer systems with lusers who DO use csh, and I want to prevent them from leaving themselves logged in all night/weekend (Not that I have anything against our office cleaners, but I don't want them fiddling with anything if temptation is left in their way).&lt;BR /&gt;&lt;BR /&gt;If I put the line:&lt;BR /&gt;setenv autologout 60&lt;BR /&gt;in&lt;BR /&gt;/etc/csh.login&lt;BR /&gt;then it should automatically logout any idle C shells with no child processes after 60 minutes.&lt;BR /&gt;BUT, there's nothing to stop the csh lusers from typing:&lt;BR /&gt;setenv autologout 0&lt;BR /&gt;or&lt;BR /&gt;unset autologout&lt;BR /&gt;when they get fed up with having to login again every morning.&lt;BR /&gt;&lt;BR /&gt;I want to stop them from changing the value of autologout.&lt;BR /&gt;Unfortunately, re-education on the joys of POSIX/ksh is likely to be resisted.</description>
      <pubDate>Fri, 28 Jan 2005 12:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882758#M400859</guid>
      <dc:creator>Gordon  Morrison_1</dc:creator>
      <dc:date>2005-01-28T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882759#M400860</link>
      <description>Actually, for bad programmers, (there's so few of them though...) even a readonly attribute for autologout won't work--they just type: vi and go home. The shell timeout is exactly that: a shell timeout. It only works at the shell prompt. Start an application and the time stops because the shell is waiting.&lt;BR /&gt; &lt;BR /&gt;One way to track down truly idle users is the who -u command where the 4th field (right after the date) is the tty or terminal activity. It will contain 3 possible values:&lt;BR /&gt; &lt;BR /&gt;. = currently active during the last minute&lt;BR /&gt;old = no keyboard activity in more than 24 hours&lt;BR /&gt;hh:mm = hours:minutes since last keyboard activity&lt;BR /&gt; &lt;BR /&gt;So kill anyone that has "old" in the activity field. Oh, unless they are running a program that takes 30 hours to complete and the program wasn't put into the background (or other similar situations).&lt;BR /&gt; &lt;BR /&gt;As you can see, we sysadmins end up trying to solve behavioral problems with social engineering like forcing lazy users to log off and there will always be exceptions...</description>
      <pubDate>Fri, 28 Jan 2005 13:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882759#M400860</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-01-28T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: readonly environment variables in csh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882760#M400861</link>
      <description>I got so fed up with going around killing 'old' logins, I put a kill_old_users function in the daily system checks, but as I am currently creating a new security-conscious "standard build", I thought I'd use the built-in features to do this. It seems there's no way to make it read-only in csh.&lt;BR /&gt;Oh, well. Thanks for your replies.</description>
      <pubDate>Mon, 31 Jan 2005 04:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/readonly-environment-variables-in-csh/m-p/4882760#M400861</guid>
      <dc:creator>Gordon  Morrison_1</dc:creator>
      <dc:date>2005-01-31T04:51:49Z</dc:date>
    </item>
  </channel>
</rss>

