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

来源:互联网 发布:在线监测数据造假 编辑:程序博客网 时间:2024/05/20 10:53

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


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

只需要修改sudo的配置文件,在命令行中输入visudo命令,找到root ALL=(ALL) ALL,在其下面添加一行: 用户名 ALL=(ALL) ALL保存即可生效。

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


阅读全文
0 0