<?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: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530091#M221328</link>
    <description>ll /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl&lt;BR /&gt;gives nothing, which is normal because this is the path at development side. &lt;BR /&gt;This libjvm.sl should be resolved by to /opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl.&lt;BR /&gt;&lt;BR /&gt;Note that I have more startup scripts that still work fine after install of goldbase11i.0412, and use a syntax similar to the one which fails. &lt;BR /&gt;The only difference is the setuid bit to allow programm running as root to be able to open socket on port 162. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Apr 2005 08:23:16 GMT</pubDate>
    <dc:creator>Antonio Cardoso_1</dc:creator>
    <dc:date>2005-04-22T08:23:16Z</dc:date>
    <item>
      <title>java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530085#M221322</link>
      <description>Hi, &lt;BR /&gt;I've just installed goldbase11i v0412 on a server, and noticed that I can't start some java process now, which was working fine before. &lt;BR /&gt;This process is started by a shell script with setuid permission to root (because it needs to listen to port 162): &lt;BR /&gt;-rwsr-xr-x   1 root  sys   2760 Apr 22 11:49 /tmp/startproc&lt;BR /&gt;&lt;BR /&gt;The script contents is : &lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/opt/java1.4/jre/bin/java -classpath &lt;SOME path=""&gt; &lt;STARTUPCLASS&gt;&lt;BR /&gt;&lt;BR /&gt;- When I run this script logged as root, it's OK&lt;BR /&gt;- When I run it logged as another user, it now causes error: &lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;Java release is 1.4.2_04&lt;BR /&gt;&lt;BR /&gt;This behavior is new...&lt;BR /&gt;If anyone can explain me the reason of this (and maybe some way to cope with it)... &lt;BR /&gt;&lt;BR /&gt;thanks. &lt;BR /&gt;&lt;/STARTUPCLASS&gt;&lt;/SOME&gt;</description>
      <pubDate>Fri, 22 Apr 2005 05:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530085#M221322</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-22T05:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530086#M221323</link>
      <description>Add&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=$SHLIB_PATH:"/CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server"&lt;BR /&gt;export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;to your script?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 05:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530086#M221323</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-22T05:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530087#M221324</link>
      <description>The cause of the error is almost always the environment variable SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;It neds to include the directory /usr/lib&lt;BR /&gt;&lt;BR /&gt;export SHLIB_PATH=/usr/lib:$SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;try again.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 22 Apr 2005 06:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530087#M221324</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-04-22T06:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530088#M221325</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I changed nothing, and it is now working with original script. &lt;BR /&gt;Moreover, the SHLIB_PATH variable was never set before. I suppose that JAVA VM initializes the lib path according to architecture and VM-type. &lt;BR /&gt;&lt;BR /&gt;I'll try once again after a clean installation. &lt;BR /&gt;&lt;BR /&gt;Thanks for your answers. &lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 06:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530088#M221325</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-22T06:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530089#M221326</link>
      <description>now I rebooted my server, and the problem appears again:&lt;BR /&gt;- even after including &lt;BR /&gt;  export SHLIB_PATH=/usr/lib:/opt/java1.4/jre/lib/PA_RISC2.0/server &lt;BR /&gt;in the script, it still causes the error. &lt;BR /&gt;&lt;BR /&gt;I can run the process is logged root, &lt;BR /&gt;it fails if other user runs it.&lt;BR /&gt;&lt;BR /&gt;Again, this was working before I installed the goldbase11i.0412 bundle.</description>
      <pubDate>Fri, 22 Apr 2005 07:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530089#M221326</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-22T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530090#M221327</link>
      <description>Probably straying into grandmother's egg sucking strategies here, but what does&lt;BR /&gt;&lt;BR /&gt;#ll /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl&lt;BR /&gt;&lt;BR /&gt;give you?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 07:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530090#M221327</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-22T07:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530091#M221328</link>
      <description>ll /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl&lt;BR /&gt;gives nothing, which is normal because this is the path at development side. &lt;BR /&gt;This libjvm.sl should be resolved by to /opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl.&lt;BR /&gt;&lt;BR /&gt;Note that I have more startup scripts that still work fine after install of goldbase11i.0412, and use a syntax similar to the one which fails. &lt;BR /&gt;The only difference is the setuid bit to allow programm running as root to be able to open socket on port 162. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 08:23:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530091#M221328</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-22T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530092#M221329</link>
      <description>If the script works OK if you log in and run it as root, but doesn't work OK if you run-as-root, that suggests maybe the environments are different? Maybe running env when logged in as root and putting env in the script would show up a difference?</description>
      <pubDate>Fri, 22 Apr 2005 08:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530092#M221329</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-22T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530093#M221330</link>
      <description>I'm re-installing the machine in previous state, but I will try once again next week if have some time for it. &lt;BR /&gt;I'll keep you informed. &lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 11:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530093#M221330</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-22T11:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530094#M221331</link>
      <description>PHCO_27781:&lt;BR /&gt; ( SR: [8606269172/STARS-ACTIVE/English]  CR:JAGae33407 )&lt;BR /&gt; Applications that rely upon the ability of su(1) command to&lt;BR /&gt; switch to another user and pass along certain environment&lt;BR /&gt; variables, including but not limited to SHLIB_PATH, do not&lt;BR /&gt; work.&lt;BR /&gt;&lt;BR /&gt;just a thought ?&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 11:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530094#M221331</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2005-04-22T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: java process run as root (setuid bit) causes /usr/lib/dld.sl: Can't open shared library:...libjvm.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530095#M221332</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;having a look at J2SE SDK release notes, I found: &lt;BR /&gt;"Running Java with setuid or setgid&lt;BR /&gt;Java requires dynamic loading (SHLIB_PATH, LD_LIBRARY_PATH) which are disabled in setuid or setgid executables. Therefore Java cannot run with setuid or setgid."&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; I understand that having it working until now with the setuid bit was more an unexpected situation!!!&lt;BR /&gt;&lt;BR /&gt;I have installed and configured sudo on my server as a way to replace the use of setuid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 06:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-process-run-as-root-setuid-bit-causes-usr-lib-dld-sl-can-t/m-p/3530095#M221332</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2005-04-25T06:38:32Z</dc:date>
    </item>
  </channel>
</rss>

