[sudo-users] Keep LD_LIBRAY_PATH

Jan Albrecht jan.albrecht at gmail.com
Thu Nov 2 08:45:38 EST 2006


Hey,

I think crle is no option as I have to use on a system eviroment where
HP-UX, AIX, Linux and Solaris are running. So there must be a system
wide solution.

Is there no native way by sudo?

Jan

Russell Van Tassell wrote:
> Just note, you can break a Solaris system *very* badly by even slight
> mistakes with crle... when using it, be sure to include the system
> library directories and do both the 32 and 64 bit paths (if applicable)
> and be wary of the "trusted" paths.  And to be clear, this will set the
> runtime linker path for everyone on the system, not just a given
> application or user...  You might want to backup /var/ld/ld.config and
> /var/ld/sparcv9/ld.config before you make any changes, as well.
>
> The other option here, of course, is to allow sudo access to a script
> that sets the path before calling the given binary (which is the option
> we tend to us).
>
> Hope that helps...
> Russell
>
>
> On Tue, Oct 31, 2006 at 08:52:14PM -0600, Brzozowski, Dwayne    (AAC) wrote:
>   
>> Jan,
>> you can use crle. I use is on my Solaris boxes. By typing crle, you are
>> given default library paths. To add additional library paths, just use
>> (as root or sudo), 
>> crle -u -l /usr/local/lib. If you want to add several library paths in
>> one line, you can
>> use this:
>>
>> crle -u -l /usr/dt/lib -l /usr/openwin/lib
>>
>> hope this helps.
>>
>> -djb
>>
>> Dwayne J. Brzozowski
>> Department of Veterans Affairs
>> Austin Automation Center
>> Team Lead-Open Systems Support
>> email:dwayne.brzozowski at mail.va.gov
>> phone:512-326-6728
>>
>>
>> -----Original Message-----
>> From: sudo-users-bounces at courtesan.com
>> [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Jan Albrecht
>> Sent: Tuesday, October 31, 2006 6:37 AM
>> To: sudo-users at courtesan.com
>> Subject: [sudo-users] Keep LD_LIBRAY_PATH
>>
>> Hi all,
>>
>> is there any known way to keep the LD_LIBRARY_PATH?
>> I've tried it via env_keep but it doesn't work.
>>
>> Thanks
>> Jan
>> ____________________________________________________________ 
>> sudo-users mailing list <sudo-users at sudo.ws>
>> For list information, options, or to unsubscribe, visit:
>> http://www.sudo.ws/mailman/listinfo/sudo-users
>>
>> ____________________________________________________________ 
>> sudo-users mailing list <sudo-users at sudo.ws>
>> For list information, options, or to unsubscribe, visit:
>> http://www.sudo.ws/mailman/listinfo/sudo-users
>>     
>
>   




More information about the sudo-users mailing list