解决sudo: /etc/sudoers is world writable

错误信息:

sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

这个是linux为保证系统安全所做的限制,解决方法运行如下两条命令:
解决方法1(亲测有效:

pkexec chmod 555 /etc/sudoers
pkexec chmod 555 /etc/sudoers.d/README

解决方法2(没试:

pkexec chmod 0440 /etc/sudoers

原博地址:https://www.cnblogs.com/dpf-learn/p/7704958.html

你可能感兴趣的:(Linux)