is not in the sudoers file 解决方案
来源:互联网 发布:淘宝装修图片 编辑:程序博客网 时间:2024/05/02 00:16
1)切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
2)
$visudo
1. 找到# Uer privilege specification
root ALL=(ALL:ALL) ALL
2 .在下面输入
user_name ALL=(ALL:ALL) ALL
4. 按Esc
5. 输入“:w”(保存文件)
6. 输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
3)
exit 切换回自己帐号
0 0
- is not in the sudoers file 解决方案
- xx is not in the sudoers file 问题的解决方案
- xx is not in the sudoers file问题的解决方案
- ubuntu下is not in the sudoers file 解决方案
- is not in the sudoers file
- xxx is not in the sudoers file
- Fedora is not in the sudoers file
- user is not in the sudoers file
- xxx is not in the sudoers file
- xx is not in the sudoers file
- xxx is not in the sudoers file.
- xx is not in the sudoers file
- is not in the sudoers file
- *** is not in the sudoers file 问题解决
- *** is not in the sudoers file 问题解决
- is not in the sudoers file解决方法
- is not in the sudoers file 解决
- xxx is not in the sudoers file
- REST中上传文件简单的实现笔记
- 为何安卓程序用Java开发
- Openstack Keystone 认证流程(四)--Filter流水线
- 辣妈萌宝APP--打开辣妈萌宝进行记录
- Java垃圾回收机制
- is not in the sudoers file 解决方案
- mapreduce编程:单表自连接
- Oracle的edit命令
- Java算法题目:一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。
- Oracle Purge和drop的区别
- arcgis10.2.2桌面版具体的安装步骤过程
- spring注解
- java中switch语句的测试
- 遇到多个构造器参数时要考虑用构建器——Effective Java 读书笔记