<?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 - does not change $SHELL in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763680#M259945</link>
    <description>I create a new account and use csh shell:&lt;BR /&gt;&lt;BR /&gt;marktest:HnpDwN/t6Jhjk:584:20:Mark Test,,,:/home/marktest:/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;When I log directly intp the account with ssh, the value of $SHELL is:&lt;BR /&gt;&lt;BR /&gt;SHELL=/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;When I su - marktest from root, the $SHELL is:&lt;BR /&gt;&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;&lt;BR /&gt;This is not happening on any other systems. For some reason, issuing a simple su - &lt;ACCOUNT&gt;  always sets the $SHELL to /sbin/sh eventhough the passwd entry is for usr/bin/csh.&lt;BR /&gt;&lt;BR /&gt;I even removed /etc/profile, /etc/csh.login and ALL the hidden files from the users $HOME directory (i.e. .profile, .login, .cshrc)&lt;BR /&gt;&lt;BR /&gt;I need to get the $SHELL environment variable to display the correct shell because a product we are using makes a check for this on it's startup script. Also, it appears from the prompt and the fact that the export command does not work, that I am truely in the csh shell even when I use su - marktest. So it just looks like an environment variable issue. Any ideas what could be setting it?&lt;BR /&gt;&lt;BR /&gt;&lt;/ACCOUNT&gt;</description>
    <pubDate>Fri, 31 Mar 2006 20:56:01 GMT</pubDate>
    <dc:creator>Mark Fisher_4</dc:creator>
    <dc:date>2006-03-31T20:56:01Z</dc:date>
    <item>
      <title>su - does not change $SHELL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763680#M259945</link>
      <description>I create a new account and use csh shell:&lt;BR /&gt;&lt;BR /&gt;marktest:HnpDwN/t6Jhjk:584:20:Mark Test,,,:/home/marktest:/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;When I log directly intp the account with ssh, the value of $SHELL is:&lt;BR /&gt;&lt;BR /&gt;SHELL=/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;When I su - marktest from root, the $SHELL is:&lt;BR /&gt;&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;&lt;BR /&gt;This is not happening on any other systems. For some reason, issuing a simple su - &lt;ACCOUNT&gt;  always sets the $SHELL to /sbin/sh eventhough the passwd entry is for usr/bin/csh.&lt;BR /&gt;&lt;BR /&gt;I even removed /etc/profile, /etc/csh.login and ALL the hidden files from the users $HOME directory (i.e. .profile, .login, .cshrc)&lt;BR /&gt;&lt;BR /&gt;I need to get the $SHELL environment variable to display the correct shell because a product we are using makes a check for this on it's startup script. Also, it appears from the prompt and the fact that the export command does not work, that I am truely in the csh shell even when I use su - marktest. So it just looks like an environment variable issue. Any ideas what could be setting it?&lt;BR /&gt;&lt;BR /&gt;&lt;/ACCOUNT&gt;</description>
      <pubDate>Fri, 31 Mar 2006 20:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763680#M259945</guid>
      <dc:creator>Mark Fisher_4</dc:creator>
      <dc:date>2006-03-31T20:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: su - does not change $SHELL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763681#M259946</link>
      <description>Hi Mark:&lt;BR /&gt;&lt;BR /&gt;You don't say what release you are running.  If this is 11.11, there is a defect in 'su' that is repaired with patch PHCO_33568.&lt;BR /&gt;&lt;BR /&gt;If you lack the patch, I suggest you download it from the ITRC Patch Database and install it.  No reboot is required.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 Mar 2006 21:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763681#M259946</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-31T21:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: su - does not change $SHELL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763682#M259947</link>
      <description>Hum, I'm pretty sure I'm running BL 11.23&lt;BR /&gt;&lt;BR /&gt;root@cdtsv1:/uname -a&lt;BR /&gt;HP-UX cdtsv1 B.11.23 U ia64 1970548579 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does not look like this patch applies to 11.23. So I wonder if it was actually fixed in 11.23 or not.</description>
      <pubDate>Fri, 31 Mar 2006 21:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763682#M259947</guid>
      <dc:creator>Mark Fisher_4</dc:creator>
      <dc:date>2006-03-31T21:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: su - does not change $SHELL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763683#M259948</link>
      <description>Hi (again) Mark:&lt;BR /&gt;&lt;BR /&gt;Yes, you are running 11.23.  Use PHCO_33567, instead.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2006 21:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763683#M259948</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-31T21:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: su - does not change $SHELL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763684#M259949</link>
      <description>Thank you, thank you!!! This did the trick!!!</description>
      <pubDate>Fri, 31 Mar 2006 21:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-does-not-change-shell/m-p/3763684#M259949</guid>
      <dc:creator>Mark Fisher_4</dc:creator>
      <dc:date>2006-03-31T21:57:37Z</dc:date>
    </item>
  </channel>
</rss>

