is not in the sudoers file 解决
来源:互联网 发布:郑州淘宝加盟诈骗罪 编辑:程序博客网 时间:2024/04/28 17:47
解决方案:
首需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
移动光标,到最后一行
your_user_name ALL=(ALL) ALL
保存文件
退出
这样就把自己加入了sudo组,可以使用sudo命令了。
首需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
移动光标,到最后一行
your_user_name ALL=(ALL) ALL
保存文件
退出
这样就把自己加入了sudo组,可以使用sudo命令了。
- 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 解决
- is not in the sudoers file 解决
- 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 解决(转)
- XXX is not in the sudoers file解决
- XXX is not in the sudoers file解决
- Linux教程:XXX is not in the sudoers file解决
- xx is not in the sudoers file 问题的解决
- is not in the sudoers file 解决(转)
- 解决"eker is not in the sudoers file"问题
- SIP注册过程
- 鸡丝海参汤
- hdu 2123
- Shell 常用文件判断
- .NET 编译执行or解释执行?
- is not in the sudoers file 解决
- Linux 常用命令——touch
- Android使用Parcelable传递对象方法及注意事项
- 环境变量设置
- iweboffice之word——功能简介
- ACS被集成到了Windows Azure Management Portal中
- [C#]增强响应性,用加载窗体(Splash)来载入主窗体
- 单例设计模式
- 模板方法