问题:但我输入sudo visudo
bash
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_audit
解决: 此文件不存在
bash
su root # 现在我能登录root
touch /etc/sudoers
vi /etc/sudoers
添加
vim
# in sudoers
root ALL=(ALL) ALL
zz ALL=(ALL) ALL#zz是自己的用户名
%wheel ALL=(ALL) ALL