bash root ~/.bash_profile quirk

2007-09-05 Thread asherwolf

I have the following in my root ~/.bash_profile:

PATH=$PATH:$HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/BerkeleyDB.4.6/lib:/usr/local/apr/lib:/usr/lib/httpd/modules
LD_RUN_PATH=$LD_RUN_PATH:/usr/local/lib:/usr/local/BerkeleyDB.4.6/lib:/usr/local/apr/lib:/usr/lib/httpd/modules
PKG_CONFIG_PATH=$PKG_CONFIG:/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

export PATH
export LD_LIBRARY_PATH
export LD_RUN_PATH
export PKG_CONFIG_PATH

BUT

When I use su to log into root, PATH is there, LD_RUN_PATH is there, and
PKG_CONFIG_PATH is there, but not LD_LIBRARY_PATH (which makes some of my
programs not cooperate)

Is there something I'm missing?  Why would an environment variable not show
up?

Maybe I'm blind.

Asher
-- 
View this message in context: 
http://www.nabble.com/bash-root-%7E-.bash_profile-quirk-tf4389588.html#a12515328
Sent from the Gnu - Bash mailing list archive at Nabble.com.





Re: bash root ~/.bash_profile quirk

2007-09-06 Thread asherwolf


Andreas Schwab wrote:
> 
> 
>>A setuid binary ignores LD_LIBRARY_PATH for security reasons.
> 
> 

Oh... I didn't know that, but now I do!  Thanks!

Asher
-- 
View this message in context: 
http://www.nabble.com/bash-root-%7E-.bash_profile-quirk-tf4389588.html#a12533627
Sent from the Gnu - Bash mailing list archive at Nabble.com.





Re: bash root ~/.bash_profile quirk

2007-09-06 Thread asherwolf



On 2007-09-06, asherwolf wrote:
>
> I have the following in my root ~/.bash_profile:
>
> PATH=$PATH:$HOME/bin
> .
> PKG_CONFIG_PATH is there, but not LD_LIBRARY_PATH (which makes some of my
> programs not cooperate)

>>Are you using "su" or "su -"?

I'm using just su... should I use "su -" ?

Asherwolf

-- 
View this message in context: 
http://www.nabble.com/bash-root-%7E-.bash_profile-quirk-tf4389588.html#a12533621
Sent from the Gnu - Bash mailing list archive at Nabble.com.