mac是真的坑(以下是错误信息)
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
(以下是解决方法步骤)
1.在Mac中启动root 账户
https://jingyan.baidu.com/article/49711c619e7620fa441b7ca8.html
2.切换到root用户,修改 /etc/sudoers的权限
#切换到root用户
demo:Desktop piaoyu.qiu$ su
Password:你自己设置的密码
sh-3.2# ls -l /etc/sudoers
-rwxrwxrwx 1 root wheel 1371 8 9 11:28 /etc/sudoers
sh-3.2# chmod 0440 /etc/sudoers
sh-3.2# ls -l /etc/sudoers
-r--r----- 1 root wheel 1371 8 9 11:28 /etc/sudoers
sh-3.2# exit
文章是转载的,具体哪位大佬不知道了