sudo: /etc/sudoers is owned by uid 755, should be 0

在ubuntu环境下, 想往/etc/sudoers中添加可以执行sudo操作的用户,使用root将/etc/sudoers的权限修改为755后,提示出现标题中的错误:

修正方法:将/etc/sudoers的owner和组修改为root:

chown root:root /etc/sudoers

image

原文地址:https://www.cnblogs.com/justinzhang/p/4478977.html