sudo出现sudo: error in /etc/sudo.conf, line 0 while loading plugin “sudoers_policy“ sud

问题描述:

sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins

解决方案:

chown root:root /usr/bin/sudo
chown root:root /usr/lib/sudo/sudoers.so
chown root:root /etc/sudoers
chown root:root /etc/sudoers.d
chown root:root /etc/sudoers.d/README
chmod 4755 /usr/bin/sudo

解决问题:
在这里插入图片描述

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注