||12-11-2012 01:00 PM
Sudo -- setting LD_LIBRARY_PATH
I need to run an application via sudo. This application needs access to libraries -- however, sudo strips LD_LIBRARY_PATH, even if you allow it via env_keep or tell it not to wipe the environment.
Sudo allows you to work around this same issue for $PATH via the "secure_path" setting in a sudoers file -- is there an equivalent for the LD_LIBRARY_PATH variable, or am I stick using an alias to do this? I'm aware that there are possible security issues.