Linux中“is not in the sudoers file”解决方法
Linux中“is not in the sudoers file”解决方法
当在终端执行sudo命令时,系统提示“XXX is not in the sudoers file”:
其实就是没有权限进行sudo,解决方法如下(这里假设用户名是XXX):
1.切换到超级用户:$ su
2.打开/etc/sudoers文件:$vim /etc/sudoers
3.修改文件内容:
找到“ro...
原创
2019-09-17 20:04:18 ·
515 阅读 ·
0 评论