Passing LD_LIBRARY_PATH through sudo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I have a CentOS 5.5/64bit VM, where I only have sudo rights:

afarber          ALL=(ALL)       NOPASSWD: ALL

I'm trying to pass LD_LIBRARY_PATH
through sudo to install DBD::Oracle
( https://rt.cpan.org/Ticket/Display.html?id=63678 )
and have tried using "sudo -E" and also
changing these lines in the stock /etc/sudoers:

Defaults    !env_reset
Defaults    env_keep = "LD_LIBRARY_PATH \
                        COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
                        LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
                        LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
                        LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME
LC_NUMERIC \
                        LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
                        _XKB_CHARSET XAUTHORITY"

Still my test call fails:

afarber@VM:~> echo $LD_LIBRARY_PATH
/usr/lib/oracle/11.2/client64
afarber@VM:~> sudo -E perl -e 'print $ENV{LD_LIBRARY_PATH}';
afarber@VM:~>
afarber@VM:~> sudo -E perl -e 'print $ENV{HOME}';
/home/afarber

Does anybody please have a suggestion here?

Thank you
Alex
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux