CentOS升级sudo版本


1查看sudo版本

sudo -V

2.下载sudo最新安装文件
sudo官方地址https://www.sudo.ws/

3.解压

tar xf sudo-1.9.5p2.tar.gz

4

cd sudo-1.9.5p2 ./configure --prefix=/usr --libexecdir=/usr/lib --with-secure-path --with-all-insults --with-env-editor --docdir=/usr/share/doc/sudo-1.9.5p2 --with-passprompt="[sudo] password for %p: " 

如果没有安装gcc会出现下面错误configure: error: no acceptable C compiler found in $PATH
在这里插入图片描述
需要安装gcc

yum install gcc

5

make

6

make install && ln -sfv libsudo_util.so.0.0.0 /usr/lib/sudo/libsudo_util.so.0

7  sudo -V

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM