sudo和环境变量LD_LIBRARY_PATH的问题

Note that the dynamic linker on most operating systems will remove variables that can control
dynamic linking from the environment of setuid executables, including sudo. Depending on the oper‐
ating system this may include RLD*, DYLD, LD_, LDR_*, LIBPATH, SHLIB_PATH, and others. These
type of variables are removed from the environment before sudo even begins execution and, as such,
it is not possible for sudo to preserve them.

posted @ 2020-05-02 11:27  KimBing_Ng  阅读(418)  评论(0编辑  收藏  举报