XXX is not in the sudoers file 解决(转)
来源:互联网 发布:淘宝号限购了最新解法 编辑:程序博客网 时间:2024/06/06 10:06
首先需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
1、移动光标,到最后一行
2、按a,进入append模式
3、输入
your_user_name ALL=(ALL) ALL
4、按Esc
5. ctrl+X退出
这样就把自己加入了sudo组,可以使用sudo命令了。
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
1、移动光标,到最后一行
2、按a,进入append模式
3、输入
your_user_name ALL=(ALL) ALL
4、按Esc
5. ctrl+X退出
这样就把自己加入了sudo组,可以使用sudo命令了。
0 0
- XXX is not in the sudoers file 解决(转)
- XXX is not in the sudoers file解决
- XXX is not in the sudoers file解决
- Linux教程: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.
- Fedora 7解决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.
- xxx is not in the sudoers file
- xxx is not in the sudoers file (转)
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- 墨菲定律、二八法则等13条是左右人生的金科玉律
- [Win32]IP数据报的首部如何定义
- 解决java 查看JDK中底层源码的实现方法
- Struts入门
- trace 10061 屏蔽smon对临时段的处理
- XXX is not in the sudoers file 解决(转)
- java集合类
- iOS之文件上传、下载(上传)
- java基础之求数组最大值
- Java深入 - logback的配置和使用
- 打卡27:代理服务器select version
- 开发WCF服务操作Sitecore
- linux ps命令
- ListFragment的使用