<?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 su - strange behaviour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685935#M382837</link>
    <description>Hi.&lt;BR /&gt;&lt;BR /&gt;On my development server (ia64 hp-ux 11.31) su has suddenly started behaving quite strangely. Any scripts started with the -c option are losing the TZ environment variable. It appears that /etc/profile is not being run. Any suggestion as to what could be causing this?&lt;BR /&gt;&lt;BR /&gt;In order to test this I have enabled SU_KEEP_ENV_VARS=HOME,SHLIB_PATH,TZ&lt;BR /&gt;in /etc/default/security but whether this is set or not seems to make no difference.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Andrew Y&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Sep 2010 11:58:14 GMT</pubDate>
    <dc:creator>Andrew Young_2</dc:creator>
    <dc:date>2010-09-13T11:58:14Z</dc:date>
    <item>
      <title>su - strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685935#M382837</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;On my development server (ia64 hp-ux 11.31) su has suddenly started behaving quite strangely. Any scripts started with the -c option are losing the TZ environment variable. It appears that /etc/profile is not being run. Any suggestion as to what could be causing this?&lt;BR /&gt;&lt;BR /&gt;In order to test this I have enabled SU_KEEP_ENV_VARS=HOME,SHLIB_PATH,TZ&lt;BR /&gt;in /etc/default/security but whether this is set or not seems to make no difference.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Andrew Y&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2010 11:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685935#M382837</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2010-09-13T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: su - strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685936#M382838</link>
      <description>"su" or "su -"?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 13 Sep 2010 12:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685936#M382838</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-09-13T12:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: su - strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685937#M382839</link>
      <description>Oops. Sorry.&lt;BR /&gt;&lt;BR /&gt;su - myuser -c command&lt;BR /&gt;&lt;BR /&gt;As listed below:&lt;BR /&gt;&lt;BR /&gt;root@dev01[/root] #su - jss_test -c 'echo $TZ'&lt;BR /&gt;&lt;BR /&gt;root@dev01[/root] #su jss_test -c 'echo $TZ'&lt;BR /&gt;SAST-2&lt;BR /&gt;root@dev01[/root] #su jss_test 'echo $TZ'&lt;BR /&gt;bash: echo $TZ: No such file or directory&lt;BR /&gt;root@dev01[/root] #su - jss_test&lt;BR /&gt;Bad planning on your part does not constitute a disaster on someone else's part.&lt;BR /&gt;/home/jss_test] echo $TZ&lt;BR /&gt;SAST-2&lt;BR /&gt;/home/jss_test] exit&lt;BR /&gt;logout&lt;BR /&gt;root@dev01[/root] #su jss_test&lt;BR /&gt;root@dev01[/root] #echo $TZ&lt;BR /&gt;SAST-2&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2010 12:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685937#M382839</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2010-09-13T12:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: su - strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685938#M382840</link>
      <description>I have no idea whether the bash shell is supposed to execute any profile/login scripts on login or not - have you tried this with a different shell?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 13 Sep 2010 12:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-strange-behaviour/m-p/4685938#M382840</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-09-13T12:43:16Z</dc:date>
    </item>
  </channel>
</rss>

