<?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: User login sets env variable, but where from? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647429#M240022</link>
    <description>Hi Russ,&lt;BR /&gt;&lt;BR /&gt;What is your shell? (ksh, csh, sh, bash?)&lt;BR /&gt;&lt;BR /&gt;echo $SHELL</description>
    <pubDate>Wed, 12 Oct 2005 04:49:05 GMT</pubDate>
    <dc:creator>Luk Vandenbussche</dc:creator>
    <dc:date>2005-10-12T04:49:05Z</dc:date>
    <item>
      <title>User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647425#M240018</link>
      <description>I have an environment variable that is being set at login for all users of a machine, but I cannot find where it is being set. &lt;BR /&gt;I've tried the usual suspects of /etc/profile and $HOME/.profile neither have this env set.!?&lt;BR /&gt;&lt;BR /&gt;I even tried resetting the env variable to what I want in /etc/profile and it doesn't appear to have any effect. Or is being over written later on ?&lt;BR /&gt;&lt;BR /&gt;Can someone suggest where else I could look? And or explain the login process?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Russ.</description>
      <pubDate>Wed, 12 Oct 2005 04:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647425#M240018</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2005-10-12T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647426#M240019</link>
      <description>Hi Russ,&lt;BR /&gt;&lt;BR /&gt;a quick hint :&lt;BR /&gt;check in home dir if &lt;BR /&gt;exist file named ".shrc" or ".kshrc".&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 12 Oct 2005 04:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647426#M240019</guid>
      <dc:creator>Piergiacomo Perini</dc:creator>
      <dc:date>2005-10-12T04:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647427#M240020</link>
      <description>Nope, neither of those files exist.</description>
      <pubDate>Wed, 12 Oct 2005 04:47:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647427#M240020</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2005-10-12T04:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647428#M240021</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;add a set -x to the first line in the /etc/profile&lt;BR /&gt;&lt;BR /&gt;# su - user_name&lt;BR /&gt;&lt;BR /&gt;check the output and remove the set -x again. It will give you some hints where to look.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 12 Oct 2005 04:48:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647428#M240021</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-10-12T04:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647429#M240022</link>
      <description>Hi Russ,&lt;BR /&gt;&lt;BR /&gt;What is your shell? (ksh, csh, sh, bash?)&lt;BR /&gt;&lt;BR /&gt;echo $SHELL</description>
      <pubDate>Wed, 12 Oct 2005 04:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647429#M240022</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-10-12T04:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647430#M240023</link>
      <description>I guess you're not referring to the minimal environment set up by login?&lt;BR /&gt;(those are named in manpages login, environ) &lt;BR /&gt; &lt;BR /&gt;Are you users' login shells C shell compatibles?&lt;BR /&gt;Then look for /etc/csh.login or $HOME/.login&lt;BR /&gt; &lt;BR /&gt;Other shells source their own initialization files (e.g. bash would look for .bash_profile)&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2005 04:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647430#M240023</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-10-12T04:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647431#M240024</link>
      <description>OK then I'm using the sh shell.&lt;BR /&gt;&lt;BR /&gt;If I do an su - username, the environment sets correctly, If I simply open a term window and check the env's they are wrong.&lt;BR /&gt;&lt;BR /&gt;So using the set -x (thanks) I can see the /etc/profile gets read.&lt;BR /&gt;&lt;BR /&gt;I guess my new qestion is why is the /etc/profile not getting read on login. AND/OR where is the environment for this machien being set??</description>
      <pubDate>Wed, 12 Oct 2005 05:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647431#M240024</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2005-10-12T05:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647432#M240025</link>
      <description>It may help if you told us what the environment variable is?&lt;BR /&gt;&lt;BR /&gt;Can you grep for it in /etc/rc.config.d/* just in case it's a system env var.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2005 05:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647432#M240025</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-10-12T05:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647433#M240026</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;maybe you are using a X windows and ".dtprofile" (or something like that)&lt;BR /&gt;override other settings?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 12 Oct 2005 05:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647433#M240026</guid>
      <dc:creator>Piergiacomo Perini</dc:creator>
      <dc:date>2005-10-12T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647434#M240027</link>
      <description>If under X/CDE -&amp;gt;&lt;BR /&gt;&lt;BR /&gt;vi $HOME/.Xresources &lt;BR /&gt;&lt;BR /&gt;*loginShell:True&lt;BR /&gt;&lt;BR /&gt;restart X/CDE ...&lt;BR /&gt;&lt;BR /&gt;xterm,dtterm or hpterm do not read the systems or users .profile by default.</description>
      <pubDate>Wed, 12 Oct 2005 05:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647434#M240027</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2005-10-12T05:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647435#M240028</link>
      <description>The environment var is UGII_ROOT_DIR the installation path from Unigraphics CAD product.... &lt;BR /&gt;I cannot find a .Xresource file.&lt;BR /&gt;and none of the files in /etc/rc.config.d/ contain this UGII....&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, any other things to check?</description>
      <pubDate>Wed, 12 Oct 2005 06:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647435#M240028</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2005-10-12T06:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647436#M240029</link>
      <description>It's not possible that "UGII_ROOT_DIR" is set on "application server side" i.e. on some application's configuration files ?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 12 Oct 2005 07:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647436#M240029</guid>
      <dc:creator>Piergiacomo Perini</dc:creator>
      <dc:date>2005-10-12T07:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647437#M240030</link>
      <description>Russ,&lt;BR /&gt;&lt;BR /&gt;  The .Xresources file is not there by default, since you are in a CAD enviroment I suspect this is your problem.&lt;BR /&gt;&lt;BR /&gt; Just vi a new file or if I'm correct try this :&lt;BR /&gt;&lt;BR /&gt;start a dtterm run in it dtterm -ls &lt;BR /&gt;&lt;BR /&gt;does this new terminal session reflect your enviroment variables correctly now ?</description>
      <pubDate>Thu, 13 Oct 2005 03:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647437#M240030</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2005-10-13T03:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647438#M240031</link>
      <description>Alex, The dtterm -is does indeed set correctly, where as simply openning a dtterm is set incorrectly? Does this prove anything?</description>
      <pubDate>Fri, 14 Oct 2005 06:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647438#M240031</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2005-10-14T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647439#M240032</link>
      <description>dtterm is unlike any 'normal' Unix login. Actually, xterm, dterm and hpterm all fall into this category. When you use Xwindows, these terminal emulators ignore normal login profiles by default. There are separate files used during login because Xwindows is primarily a graphics program and terminal connections are seldom used. OK, I know that's not the case, but the Xwindows designers seemed to think that. So when you use Xwindows, a different set of login profiles are followed which include .Xdefaults and other .X----- files.&lt;BR /&gt; &lt;BR /&gt;To make Xwindow terminal emulators behave like normal Unix logins, use the loginShell environment variable as in:&lt;BR /&gt; &lt;BR /&gt;echo "*loginShell: true" &amp;gt;&amp;gt; /HOME/.Xresources&lt;BR /&gt; &lt;BR /&gt;Now the env variable you are expecting is not from HP-UX so it is definitely being set in the Xwindows profiles. Changing to loginShell:true should make everything the same. Now search your home directory for the env variable. It is very likely in a .X----- or a .dt----- file.</description>
      <pubDate>Fri, 14 Oct 2005 23:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647439#M240032</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-14T23:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647440#M240033</link>
      <description>Just another idea I got while last time fumbling with the PAM on my Linux box to enable LDAP integration.&lt;BR /&gt; &lt;BR /&gt;Could it be that your users are obtaining their environment from such a name service or directory like an LDAP server?&lt;BR /&gt; &lt;BR /&gt;Then apart from that also certain PAM modules could setup a user's environment on login.&lt;BR /&gt;Have a look at /etc/pam.conf for such a module (maybe named something like env.*)</description>
      <pubDate>Wed, 26 Oct 2005 10:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647440#M240033</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-10-26T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: User login sets env variable, but where from?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647441#M240034</link>
      <description>Russ,&lt;BR /&gt;&lt;BR /&gt;How about searching for a file named ".ugii_env" in the homedir of the user that owns the application.&lt;BR /&gt;&lt;BR /&gt;regards!</description>
      <pubDate>Wed, 26 Oct 2005 12:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-login-sets-env-variable-but-where-from/m-p/3647441#M240034</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-10-26T12:10:19Z</dc:date>
    </item>
  </channel>
</rss>

