xxx is not in the sudoers file解决方法
来源:互联网 发布:网络上赌博怎么处罚 编辑:程序博客网 时间:2024/06/07 10:54
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方 法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3) 编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL:ALL) ALL"在起下面添加"xxx ALL=(ALL:ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
原文地址:点击打开链接
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法 SUDO
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file 解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- leetcode Palindrome Partitioning I II
- 监控视频中人的特征识别
- DLNA
- VC编程 设置IE浏览器代理(不需重启浏览器)
- HDU1358--KMP找周期(KMP基本题型到此总结完毕)
- xxx is not in the sudoers file解决方法
- 补全MyReview database中的zmax_text table的方法(解决Zmax_Exception问题)
- EF版本变化及一些重要变更
- erlang android 通讯
- Jorm实现简单的数据库CRUD操作
- Java学习第三课 面向对象编程
- 程序设计思考
- Install WAS6.1+IHS for Linux(64bit)
- android adb启动失败问题 adb server is out of date. killing... ADB server didn't ACK * failed to start daem