linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
来源:互联网 发布:虚拟打印机端口删除 编辑:程序博客网 时间:2024/05/19 21:18
在使用sudo命令前时,用户确保在sudoers文件中已添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名),否则
会报xxx is not in the sudoers file.This incident will be reported的错误,下面说说如何解决这个错误。
1.切换root用户,在终端输入su,回车后输入root的密码即可切换到root用户
2.添加sudoers文件的写权限,命令是:chmod u+w ../etc/sudoers(若当前目录不是用户目录,则需要切换到用户目录下:cd ~)
3.编辑sudoers文件,命令是:vi ../etc/sudoers,键入i,使其处于编辑阶段,找到root ALL=(ALL) ALL,在他下面添加
xxx ALL=(ALL) ALL (这里的xxx是你的用户名),添加后如下图,按esc键后再键入:wq退出并保存即可
4.撤销sudoers文件写权限,命令:chmod u-w ../etc/sudoers,在终端完整输入的命令如下图,这样普通用户就可以使用sudo命令了
0 0
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- 普通用户开通sudo权限:xxx is not in the sudoers file.This incident will be reported.的解决方法
- sudo 提示oracle is not in the sudoers file. This incident will be reported的解决方法
- linux报"xxx is not in the sudoers file.This incident will be reported"错误
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx(wsh) is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- Java语言中的面向对象特性(总结得不错)
- J2EE架构师之路
- Linux 下开启ssh服务
- [leetcode]31 Symmetric Tree
- As second twin awaits kidney donor, rural Washington family can only wait
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- 第二章作业题51.3(编写一个程序从键盘输入10个数,要求输出其中最小的。)
- JavaScript语言精粹【数组、正则表达、JSON、JSLint】
- # 我回家了,你们继续加油(2014年总结)
- C语言中的指针数组和数组指针
- [体系结构]设计模式(四)
- 微软面试3 最大子数组问题
- TCP与UDP的区别
- 本地启用XAMPP – MySQL shutdown unexpectedly问题解决