sudo su 问题
来源:3-10 用户和权限

会灰的胖子
2021-10-14
为啥之前我建的用户都能用sudo su
突然用着用着就提示这个了呢:
[eric@localhost ~]$ sudo su
[sudo] password for eric:
eric is not in the sudoers file. This incident will be reported.
在网上百度了解决办法:
用root编辑/etc/sudoers
加上
用户名 ALL=(ALL) ALL
还是不行…
又提示这个…
[eric@localhost ~]$ sudo su
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
已解决了…
妹的…我直接复制的百度的这一行
用户名 ALL=(ALL) ALL
结果特么()括号是中文的括号…
百度说,这个文件修改了权限之后要改回只读.
然后用普通用户就可以sudo 了
写回答
1回答
-
Oscar
2021-10-15
挺好的~~
10
相似问题