From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,54857fb1ad7c82f3 X-Google-Attributes: gidfee84,public From: "John Goodbody" Subject: Re: LD_LIBRARY_PATH mangled on SUID program Date: 2000/02/04 Message-ID: <87euve$ace@romeo.logica.co.uk>#1/1 X-Deja-AN: 581567608 References: <87cab9$h5v$1@news.gov.on.ca> Organization: Logica UK Ltd. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.unix.osf.osf1 Yes, we hit this problem and assumed it was a 'bug' although I now see that it could be a valid security precaution. We have control of the source code of the the program which calls setuid / setgid and coded it to strip off the first 8 bytes of LD_LIBRARY_PATH and then re-set it with setenv. Not very pleasant, but it works (for now...). John. Richard wrote in message <87cab9$h5v$1@news.gov.on.ca>... >Dear List: > >This is the second time I have run into this. Does anyone have a work >around? > >I have a user with a particular LD_LIBRARY_PATH variable set. I want the >user to run a program with 4755 protection. The LD_LIBRARY_PATH of the user >wishing to run the program becomes mangled by a prepended string which >appears as follows when it is od'd from an output file. > > del 2 1 2 del 1 8 1 > >when echoed to the screen it is: j212j181 (the j's have 2 dots above each) > >Any help or guidance or even explanation would be appreciated. > >I am running Compaq Tru64 Unix version 4.0f. > >Thanks in advance. > >Richard Abraham > > > >