user is not in the sudoers file 的解决办法
来源:互联网 发布:安卓数据存储5种方式 编辑:程序博客网 时间:2024/04/30 03:08
解决方案:
首需要切换到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、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
首需要切换到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、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
0 0
- user is not in the sudoers file 的解决办法
- user is not in the sudoers file
- user is not in the sudoers 解决办法
- linux下”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
- 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
- xx is not in the sudoers file
- 水的一米的水仙花
- mark
- VS MONO Android开发控件悬浮显示提醒 自定义背景颜色、字体、数字颜色、摆放位置
- cocos2d-x 2.0通过CCAnimation实例获取CCSpriteFrame
- linux下C语言utf-8编码与gb2312转换代码---libiconv
- user is not in the sudoers file 的解决办法
- 浙江省11届省赛部分题解
- 黑马程序员_银行业务调度系统
- 在Linux中,开机自动运行普通用户的脚本程序
- windows 7 干净启动
- 不是技术牛人,如何拿到国内IT巨头的Offer
- HTML入门:Tag学习
- Java观察者模式 java.util.Observable 与 java.util.Observer 的理解
- Android SDK更新 Connection to http://dl-ssl.google.com refused 解决方法