<?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: Setuid causing runtime link errror in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478542#M212985</link>
    <description>Hi Duncun,&lt;BR /&gt;Thank you for the response.&lt;BR /&gt;&lt;BR /&gt;I understand that SHLIB_PATH will be ignored. But why does my $ORIGIN is getting ignored? When I specify it to take from my directory(mentioned using Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib) why is this getting ignored?&lt;BR /&gt;&lt;BR /&gt;Any pointers?&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;vineesh&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Feb 2005 05:30:43 GMT</pubDate>
    <dc:creator>Vineesh U S</dc:creator>
    <dc:date>2005-02-04T05:30:43Z</dc:date>
    <item>
      <title>Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478540#M212983</link>
      <description>Hi All,&lt;BR /&gt; I am building my binary with the following options:&lt;BR /&gt;&lt;BR /&gt;**********************************************&lt;BR /&gt;/opt/aCC/bin/aCC           \&lt;BR /&gt;         \&lt;BR /&gt;        \&lt;BR /&gt;         \&lt;BR /&gt;        HP-UXB.11.11_OPT.OBJ/pmdf.o \&lt;BR /&gt;        \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;        -LHP-UXB.11.11_OPT.OBJ -L../../lib/imta/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/imta-simsapi/HP-UXB.11.11_OPT.OBJ -L../../lib/imta-util/HP-UXB.11.11_OPT.OBJ -L&lt;BR /&gt;../../lib/pal/HP-UXB.11.11_OPT.OBJ -L../../lib/mee/HP-UXB.11.11_OPT.OBJ -L../../&lt;BR /&gt;lib/yasr/HP-UXB.11.11_OPT.OBJ -L../../lib/cyrus/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/async/HP-UXB.11.11_OPT.OBJ -L../../lib/mtpcore/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/mailwave/HP-UXB.11.11_OPT.OBJ -L../../lib/msgsrvu/HP-UXB.11.11_OPT.OBJ -L../../&lt;BR /&gt;lib/regexpu/HP-UXB.11.11_OPT.OBJ -L../../../external/security/HP-UXB.11.11_OPT.O&lt;BR /&gt;BJ/lib -L../../../external/security/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../externa&lt;BR /&gt;l/icu/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/sasl/HP-UXB.11.11_OPT.OBJ/li&lt;BR /&gt;b/ -L../../../external/ldap/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/admins&lt;BR /&gt;dk/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/db/HP-UXB.11.11_OPT.OBJ/lib \&lt;BR /&gt;        -limta -lmsgsrvu -lmailwave -lcyrus -lasock -lmee -lyasr -lasync -ladmin&lt;BR /&gt;util53 -lsi18n -lmtpcore -ldb-4.2 -licui18n -licuuc -licudata -lregexpu -lsasl -&lt;BR /&gt;lnss3 -lssl3 -lsoftokn3 -lnspr4 -lplc4 -lplds4 -lldap50 -lssldap50 -lprldap50 \^&lt;BR /&gt;M&lt;BR /&gt;         \&lt;BR /&gt;        -AA -Wl,-a,shared_archive -Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib&lt;BR /&gt;\&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;        -lsec -lrt \&lt;BR /&gt;         \&lt;BR /&gt;        -ladminutil53 -lsi18n \&lt;BR /&gt;         \&lt;BR /&gt;        -o HP-UXB.11.11_OPT.OBJ/imtacli&lt;BR /&gt;========================================&lt;BR /&gt;/opt/aCC/bin/aCC           \&lt;BR /&gt;         \&lt;BR /&gt;        \&lt;BR /&gt;         \&lt;BR /&gt;        HP-UXB.11.11_OPT.OBJ/improgram.o \&lt;BR /&gt;        \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;        -LHP-UXB.11.11_OPT.OBJ -L../../lib/imta/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/imta-simsapi/HP-UXB.11.11_OPT.OBJ -L../../lib/imta-util/HP-UXB.11.11_OPT.OBJ -L&lt;BR /&gt;../../lib/pal/HP-UXB.11.11_OPT.OBJ -L../../lib/mee/HP-UXB.11.11_OPT.OBJ -L../../&lt;BR /&gt;lib/yasr/HP-UXB.11.11_OPT.OBJ -L../../lib/cyrus/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/async/HP-UXB.11.11_OPT.OBJ -L../../lib/mtpcore/HP-UXB.11.11_OPT.OBJ -L../../lib&lt;BR /&gt;/mailwave/HP-UXB.11.11_OPT.OBJ -L../../lib/msgsrvu/HP-UXB.11.11_OPT.OBJ -L../../&lt;BR /&gt;lib/regexpu/HP-UXB.11.11_OPT.OBJ -L../../../external/security/HP-UXB.11.11_OPT.O&lt;BR /&gt;BJ/lib -L../../../external/security/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../externa&lt;BR /&gt;l/icu/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/sasl/HP-UXB.11.11_OPT.OBJ/li&lt;BR /&gt;b/ -L../../../external/ldap/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/admins&lt;BR /&gt;dk/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/db/HP-UXB.11.11_OPT.OBJ/lib \&lt;BR /&gt;        -limtautil -limsdk -lpal -limta -lmsgsrvu -lmailwave -lcyrus -lasock -lm&lt;BR /&gt;ee -lyasr -lasync -ladminutil53 -lsi18n -lmtpcore -ldb-4.2 -licui18n -licuuc -li&lt;BR /&gt;cudata -lregexpu -lsasl -lnss3 -lssl3 -lsoftokn3 -lnspr4 -lplc4 -lplds4 -lldap50&lt;BR /&gt; -lssldap\-lprldap50 \&lt;BR /&gt;        -AA -Wl,-a,shared_archive -Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib&lt;BR /&gt;\&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;        -lsec -lrt \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;         \&lt;BR /&gt;        -o HP-UXB.11.11_OPT.OBJ/imtaProgram&lt;BR /&gt;&lt;BR /&gt;**********************************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now when I run the binary I get this error:&lt;BR /&gt;&lt;BR /&gt;# ./imtacli program&lt;BR /&gt;/usr/lib/dld.sl: Can't find path for shared library: libprldap50.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;ABORT instruction (core dumped)&lt;BR /&gt;&lt;BR /&gt;Note: here program is an argument&lt;BR /&gt;&lt;BR /&gt;When I run my program using truss I get to see that it is due to SETUID(). I have attached the logs for the truss session.&lt;BR /&gt;&lt;BR /&gt;Can anybody tell me how I need to attack this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vineesh</description>
      <pubDate>Fri, 04 Feb 2005 04:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478540#M212983</guid>
      <dc:creator>Vineesh U S</dc:creator>
      <dc:date>2005-02-04T04:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478541#M212984</link>
      <description>Maybe related to this (although this was on 11.23 a patch might have introduced similar functionality on 11.11 - check the man page for dlopen) :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542528" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542528&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 04 Feb 2005 05:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478541#M212984</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2005-02-04T05:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478542#M212985</link>
      <description>Hi Duncun,&lt;BR /&gt;Thank you for the response.&lt;BR /&gt;&lt;BR /&gt;I understand that SHLIB_PATH will be ignored. But why does my $ORIGIN is getting ignored? When I specify it to take from my directory(mentioned using Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib) why is this getting ignored?&lt;BR /&gt;&lt;BR /&gt;Any pointers?&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;vineesh&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 05:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478542#M212985</guid>
      <dc:creator>Vineesh U S</dc:creator>
      <dc:date>2005-02-04T05:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478543#M212986</link>
      <description>Do a chatr on your binary. If it doesn't have SHLIB_PATH enabled, then do &lt;BR /&gt;&lt;BR /&gt;# chatr +s enable binary name&lt;BR /&gt;&lt;BR /&gt;make sure that the environment variable SHLIB_PATH is set and exported in your shell. It should include the path to where the library libprldap50.sl exists.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 05:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478543#M212986</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-04T05:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478544#M212987</link>
      <description>Hi Stephen,&lt;BR /&gt;Thank you for your response.&lt;BR /&gt;&lt;BR /&gt;But I don't want to enable the SHLIB_PATH. I want it to always take from my directory( $ORIGIN/../lib:.:../lib)&lt;BR /&gt;&lt;BR /&gt;Is there any way to take from the specified path without enabling SHLIB_PATH?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;vineesh&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 05:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478544#M212987</guid>
      <dc:creator>Vineesh U S</dc:creator>
      <dc:date>2005-02-04T05:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setuid causing runtime link errror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478545#M212988</link>
      <description>If you don't want to use SHLIB_PATH, then when you link the library to the object code to create the binary, the path of the library is set. If you run chatr (with no options) on the binary you will see the path that has been set. You can either (a) change the makefile to change the path, or (b) create a symbolic link between where the library actually is and where your binary thinks it is.&lt;BR /&gt;&lt;BR /&gt;I suspect your binary has a relative path set for the library, whereas (if you intend to run the binary from outside its own directory) you need an absolute path.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 05:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setuid-causing-runtime-link-errror/m-p/3478545#M212988</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-04T05:53:54Z</dc:date>
    </item>
  </channel>
</rss>

