源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  无法使用sudo命令。提示xxx is not in the sudoers file. Thsi incident will be reported.

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

分类: 文章 • 2023-04-08 12:08:34

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

相关推荐

  • 无法使用sudo命令。提示xxx is not in the sudoers file. Thsi incident will be reported.
  • ubuntu下执行sudo命令提示:xx is not in the sudoers file. This incident will be reported.
  • ubuntu下执行sudo命令提示:xx is not in the sudoers file. This incident will be reported.
  • Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决
  • numpy时报错:is not a supported wheel on this platform 或者...looks like a filename,but the file does..
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号