<?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 ksh  environment variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902081#M105087</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I create a user with a shell /usr/bin/ksh. when I login to that user my profile is not executed.  I tried the following&lt;BR /&gt;1) ./.profile (Profile  ran but environment varible does not set)&lt;BR /&gt;2) sh .profile (result is same as above)&lt;BR /&gt;3) . .profile (ksh: .profile not found. I set #!/usr/bin/ksh at the top of my profile)&lt;BR /&gt;&lt;BR /&gt;For simplicy , the permission of my profile is set to 777.&lt;BR /&gt;&lt;BR /&gt;4) if I login as root user and then exec newuser , the profile is executed and environment variable is set. The root user shell has /sbin/sh&lt;BR /&gt;&lt;BR /&gt;Any help.&lt;BR /&gt;Thanks&lt;BR /&gt;Sam..</description>
    <pubDate>Tue, 11 Feb 2003 19:00:56 GMT</pubDate>
    <dc:creator>sameer_5</dc:creator>
    <dc:date>2003-02-11T19:00:56Z</dc:date>
    <item>
      <title>ksh  environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902081#M105087</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I create a user with a shell /usr/bin/ksh. when I login to that user my profile is not executed.  I tried the following&lt;BR /&gt;1) ./.profile (Profile  ran but environment varible does not set)&lt;BR /&gt;2) sh .profile (result is same as above)&lt;BR /&gt;3) . .profile (ksh: .profile not found. I set #!/usr/bin/ksh at the top of my profile)&lt;BR /&gt;&lt;BR /&gt;For simplicy , the permission of my profile is set to 777.&lt;BR /&gt;&lt;BR /&gt;4) if I login as root user and then exec newuser , the profile is executed and environment variable is set. The root user shell has /sbin/sh&lt;BR /&gt;&lt;BR /&gt;Any help.&lt;BR /&gt;Thanks&lt;BR /&gt;Sam..</description>
      <pubDate>Tue, 11 Feb 2003 19:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902081#M105087</guid>
      <dc:creator>sameer_5</dc:creator>
      <dc:date>2003-02-11T19:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: ksh  environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902082#M105088</link>
      <description>make sure the users .dtprofile contains the following line&lt;BR /&gt;&lt;BR /&gt;DTSOURCEPROFILE=true&lt;BR /&gt;&lt;BR /&gt;make sure it is not commented out</description>
      <pubDate>Tue, 11 Feb 2003 19:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902082#M105088</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-02-11T19:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: ksh  environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902083#M105089</link>
      <description>check permissions on user's .profile.&lt;BR /&gt;&lt;BR /&gt;The login sequence is as follows.&lt;BR /&gt;&lt;BR /&gt;/etc/profile&lt;BR /&gt;user's profile($HOME/.profile)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2003 19:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902083#M105089</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-02-11T19:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: ksh  environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902084#M105090</link>
      <description>Hi Sam,&lt;BR /&gt;&lt;BR /&gt;1) What's the ownership/perms on that user's .profile?&lt;BR /&gt;Should be 444 username/primary_group&lt;BR /&gt;2) Proper command to source the file would be:&lt;BR /&gt;. ./.profile&lt;BR /&gt;If you're in that user's home dir&lt;BR /&gt;3) You generally don't need a shell indicator at the top of a .profile file.&lt;BR /&gt;4) DO NOT change the default shell for root - system will be unbootable if you do.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 11 Feb 2003 19:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902084#M105090</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-02-11T19:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: ksh  environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902085#M105091</link>
      <description>Thanks Paul. It worked. &lt;BR /&gt;&lt;BR /&gt;Sam..</description>
      <pubDate>Tue, 11 Feb 2003 19:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-environment-variables/m-p/2902085#M105091</guid>
      <dc:creator>sameer_5</dc:creator>
      <dc:date>2003-02-11T19:17:55Z</dc:date>
    </item>
  </channel>
</rss>

