is not in the sudoers file 解决(转)
来源:互联网 发布:网络销售合同 编辑:程序博客网 时间:2024/06/08 06:49
解决方案:
首需要切换到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
- 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 解决(转)
- 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 解决(转)
- 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 解决(转)
- 解决 xx is not in the sudoers file
- @class和#import的区别
- MyEclipse8.5 起动不了报 An error has occurred.See the log file
- Flex中通过RadioButton进行切换
- [LeetCode]String to Integer (atoi)
- SHELL : echo字体控制
- is not in the sudoers file 解决(转)
- window7 wifi配置
- @property与内存管理以及可传参数
- 通过傅里叶变换方法求图像卷积-OpenCV实现
- 程序员面试100题之五:二叉树两个结点的最低共同父结点
- PHP控制Header信息以强制转换文件类型表
- MyBatis的动态SQL详解
- mybatis学习笔记
- SHELL : 数组变量及数组参数