无法使用sudo命令。提示xxx is not in the sudoers file. Thsi incident will be reported.

解决方案:用su切换到root用户,修改/etc/sudoers文件,即用以下命令: [[email protected] /]$ su password: [[email protected] /]$ vim /etc/sudoers 最后wq!保存退出即可 如果要切换sam用户,则: [[email protected] /]$ su sam [[email protected] /]$
相关文章
相关标签/搜索