<?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: SHLIB_PATH and su in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171284#M458097</link>
    <description>Looking at the su man page, we see that "su executes a new shell with the real and effective user ID, real and effective group ID, and group access list set to that of the specified user.  The new shell is the one specified in the shell field of the new user's entry in the password file, /etc/passwd."&lt;BR /&gt;&lt;BR /&gt;If you use the minus sign ("-"), "the new shell starts up as if the new user had initiated a new login session" and the environment is set accordingly.  Without the minus sign, this does not happen - you just start a new shell without setting any special environment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Apr 2009 12:19:53 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2009-04-23T12:19:53Z</dc:date>
    <item>
      <title>SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171283#M458096</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a problem with my environnement variable : SHLIB_PATH.&lt;BR /&gt;&lt;BR /&gt;I have initialize it in /etc/profile : &lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=/usr/lib ....&lt;BR /&gt;export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;When i'm connect with one user it's ok : &lt;BR /&gt;&lt;BR /&gt;echo $SHLIB_PATH&lt;BR /&gt;SHLIB_PATH=/usr/lib &lt;BR /&gt;&lt;BR /&gt;But, if i use "su" like this way : &lt;BR /&gt;&lt;BR /&gt;su toto&lt;BR /&gt;&lt;BR /&gt;(witout the "-")&lt;BR /&gt;&lt;BR /&gt;My environnement variable SHLIB_PATH disappear... And only SHLIB_PATH. I had try with an other and it's ok ...&lt;BR /&gt;&lt;BR /&gt;I don't understand.&lt;BR /&gt;&lt;BR /&gt;Can you help me, please ?&lt;BR /&gt;&lt;BR /&gt;(Sorry for my english, i'm french ...)&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Apr 2009 12:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171283#M458096</guid>
      <dc:creator>DELAIRE_1</dc:creator>
      <dc:date>2009-04-23T12:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171284#M458097</link>
      <description>Looking at the su man page, we see that "su executes a new shell with the real and effective user ID, real and effective group ID, and group access list set to that of the specified user.  The new shell is the one specified in the shell field of the new user's entry in the password file, /etc/passwd."&lt;BR /&gt;&lt;BR /&gt;If you use the minus sign ("-"), "the new shell starts up as if the new user had initiated a new login session" and the environment is set accordingly.  Without the minus sign, this does not happen - you just start a new shell without setting any special environment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Apr 2009 12:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171284#M458097</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-04-23T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171285#M458098</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;su without the - just changes the user and gives you the new users power. It does not load the environment of the new user and does not null value in SHLIB_PATH.&lt;BR /&gt;&lt;BR /&gt;su - username &lt;BR /&gt;&lt;BR /&gt;Loads the new users environment which clearly does not have settings for SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;As Pete points out its all in the man page which states it better than I can.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Apr 2009 12:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171285#M458098</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-23T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171286#M458099</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Your English is fine!&lt;BR /&gt;&lt;BR /&gt;You need to specify 'SU_KEEP_ENV_VARS=SHLIB_PATH' in '/etc/security/default'.  If you do not have the file, simply create it.  See the manpages for details:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/security.4.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/security.4.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 23 Apr 2009 12:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171286#M458099</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-23T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171287#M458100</link>
      <description>This is done for security purposes to ensure you don't end up looading dodgy shared libraries - you have to explicityly set it again. This is described in the man page for su. Your choices for getting around this are:&lt;BR /&gt;&lt;BR /&gt;i) Just set SHLIB_PATH again after you su, or:&lt;BR /&gt;&lt;BR /&gt;ii) Make a global change to the system to not behave like this. To do this edit or create the file /etc/default/security and add the line:&lt;BR /&gt;&lt;BR /&gt;SU_KEEP_ENV_VARS=SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;But be aware this is changed for the whole system, so if you have security standards and/or a security team you might want to consider if its the right thing to do.&lt;BR /&gt;&lt;BR /&gt;You can read more about this in the man page security(4) :&lt;BR /&gt;&lt;BR /&gt;man 4 security&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Apr 2009 12:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171287#M458100</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-04-23T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH and su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171288#M458101</link>
      <description>Thanks for your answers ! &lt;BR /&gt;&lt;BR /&gt;It works with the file /etc/default/security (and not /etc/security/default, but it's written in the man page that you give)&lt;BR /&gt;&lt;BR /&gt;Thanks for your help !&lt;BR /&gt;&lt;BR /&gt;:-)</description>
      <pubDate>Thu, 23 Apr 2009 12:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-and-su/m-p/5171288#M458101</guid>
      <dc:creator>DELAIRE_1</dc:creator>
      <dc:date>2009-04-23T12:30:05Z</dc:date>
    </item>
  </channel>
</rss>

