新安装了fedora 26 workstation,在使用sudo命令时报出了如下提示:
用户名+is not in the sudoers file. This incident will be reported.
只需要修改sudo的配置文件,在命令行中输入visudo命令,找到root ALL=(ALL) ALL,在其下面添加一行: 用户名 ALL=(ALL) ALL保存即可生效。
下面的截图是遇到问题的过程:
解决Fedora26工作站使用sudo命令时提示用户名不在sudoers文件的问题。通过编辑sudo配置文件添加用户名以获得管理员权限。
新安装了fedora 26 workstation,在使用sudo命令时报出了如下提示:
用户名+is not in the sudoers file. This incident will be reported.
只需要修改sudo的配置文件,在命令行中输入visudo命令,找到root ALL=(ALL) ALL,在其下面添加一行: 用户名 ALL=(ALL) ALL保存即可生效。
下面的截图是遇到问题的过程:
4413
3248
7569
5086

被折叠的 条评论
为什么被折叠?