LD_LIBRARY_PATH It can compromise security

简介: LD_LIBRARY_PATH It can compromise security

产生场景

Ubuntu 20.04 环境通过 apt 安装的 clickhouse-client ,详见笔记:Ubuntu20.04安装

在安装完成后终端上输入 clickhouse-client 出现如下错误:

$ clickhouse-client
Environment variable LD_LIBRARY_PATH is set to /home/iric/.gvm/pkgsets/go1.17.5/global/overlay/lib:. It can compromise security.点击复制复制失败已复制


意思是 LD_LIBRARY_PATH可能会涉及危害


产生原因

目前还不太懂具体原理,先放一篇网上文章:https://askubuntu.com/questions/801570/is-ld-library-path-a-security-risk


解决办法

使用sudo

$ sudo clickhouse-client -V
ClickHouse client version 22.4.2.1 (official build).
目录
相关文章
|
并行计算
解决Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0
解决Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0
3288 0
|
6月前
|
机器学习/深度学习 算法 算法框架/工具
Library
Library
37 1
|
Android开发
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
452 0
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
|
缓存 关系型数据库 MySQL
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
4522 0
|
Python
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
533 0
|
Python
ld: library not found for -lssl
ld: library not found for -lssl
77 0
static library libs/libvpx/libvpx.a is not portable!
static library libs/libvpx/libvpx.a is not portable!
379 0
|
Ubuntu
Could not load dynamic library 'libcudnn.so.8'
Could not load dynamic library 'libcudnn.so.8'
916 0
关于问题ld:library not found for -lXXX的错误
关于问题ld:library not found for -lXXX的错误
771 0
|
关系型数据库 数据库
sqlplus: error while loading shared libraries: /u01/app/lib/libclntsh.so.11.1
成功安装了Oracle 11g后,使用sqlplus登录数据库时遇到下面错误: [oracle@DB-Server ~]$ sqlplus / as sysdba   sqlplus: error while loading shared libraries: /u01/app/lib/libclntsh.
1444 0