Upgrade sudo to 1.9.5p2, fix sudo vulnerability

**

Upgrade sudo to 1.9.5p2, fix sudo vulnerability

**
Today, January 27, 2021, there is a new vulnerability related to sudo. You can go to Baidu for the details of the vulnerability. We are not system developers. We don’t need to know so much. We just need to fix it. Then for convenience, I simply compiled a script. I have tried it and it can be repaired normally. . The tar package link is also placed below.

Tar package download link: https://www.sudo.ws/dist/sudo-1.9.5p2.tar.gz
directly copy and download it with Thunder.

Then the script

#!/bin/bash
yum install -y gcc
tar -zxvf /home/data/packges/sudo-1.9.5p2.tar.gz -C /home/data/packges/
cd /home/data/packges/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: " && make && make install && ln -sfv libsudo_util.so.0.0.0 /usr/lib/sudo/libsudo_util.so.0

You modify the specific path in the script by yourself, I won't change it into a parameter. Everyone knows this, so I don't need to do it many times.

After the script runs, execute sudo --version to
see the version!
That's it!

Guess you like

Origin blog.csdn.net/weixin_44445958/article/details/113264352