无法使用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

无法使用sudo命令。提示xxx is not in the sudoers file. Thsi incident will be reported.
最后wq!保存退出即可

如果要切换sam用户,则:

[[email protected] /]$ su sam
[[email protected] /]$ 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-05-18
  • 2022-02-20
  • 2021-05-26
  • 2021-12-12
猜你喜欢
  • 2022-03-07
  • 2021-07-15
  • 2021-12-03
  • 2021-10-18
  • 2022-01-02
  • 2021-07-08
  • 2021-12-16
相关资源
相似解决方案