SUMMARY: X11R5 xterm and solaris 2.2

From: Jan van Doorn (jdoorn@nl.oracle.com)
Date: Mon Nov 22 1993 - 16:58:37 CST


Hello sun-managers,

Once again the answers from the list are very usefull.

My question was:

>> I have just built X11R5pl26, everything seems to work fine,
>> except for xterm, when I run it setuid (as it is supposed to be)
>> I get:
>>
>> $ xterm
>> ld.so.1: xterm: can't find file libXaw.so.5
>> Killed
>>
>> If I remove the setuid bit, it works fine! I checked all the
>> obvious stuff as far as I can think of, let it rest for a day,
>> but I still didn't thinkl of a solution. I would like to be able
>> to use xterm setuid for xterm -C.

The answer to my problem is:

Use -R<lib-path> when compiling. Setuid programs do not use the
LD_LIBRARY_PATH environment variable, that would make them a
target for hackers. See ld(1) man page for the -R option.

The solaris fix should have done this for me, I have not yet traced
back why it didn't.

Many thanks to:

 Casper Dik <casper@fwi.uva.nl>
 raoul@mit.edu
 perryh@pluto.rain.com (Perry Hutchison)
 Dave Fetrow <fetrow@biostat.washington.edu>
 Ian MacPhedran <Ian_MacPhedran@engr.usask.ca>
 Heas <heas@chpc.org>

I will summarize on the 8500c question A.S.A.P.
Best regards,

-- 
Jan van Doorn,                                        UNIX System Manager
Oracle Nederland BV                                   Computer Operations
+31 3406 94211, jdoorn@nl.oracle.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:30 CDT