LD_LIBRARY_PATH
Last updated
Last updated
Programs running via sudo can inherit variables from the environment of the user. If the env_reset option is set in the /etc/sudoers config file, sudo will run the programs in a new, minimal environment. The env_keep option can be used to keep certain environment variables from the user’s environment. The configured options are displayed when running sudo -l.
The LD_LIBRARY_PATH is inherited from the user's environment. The LD_LIBRARY_PATH contains a list of directories which search for shared libraries first.