新安装了fedora 26 workstation,在使用sudo命令时报出了如下提示:

用户名+is not in the sudoers file. This incident will be reported.

用户名+is not in the sudoers file.  This incident will be reported.

只需要修改sudo的配置文件,在命令行中输入visudo命令,找到root ALL=(ALL) ALL,在其下面添加一行: 用户名 ALL=(ALL) ALL保存即可生效。用户名+is not in the sudoers file. This incident will be reported.

下面的截图是遇到问题的过程:

用户名+is not in the sudoers file. This incident will be reported.

相关文章:

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