用户名+is not in the sudoers file. This incident will be reported.
新安装了fedora 26 workstation,在使用sudo命令时报出了如下提示:
用户名+is not in the sudoers file. This incident will be reported.
只需要修改sudo的配置文件,在命令行中输入visudo命令,找到root ALL=(ALL) ALL,在其下面添加一行: 用户名 ALL=(ALL) ALL保存即可生效。
下面的截图是遇到问题的过程: