xxx is not in the sudoers file.This incident will be reported
来源:互联网 发布:centos latex 编辑:程序博客网 时间:2024/06/05 14:57
今天使用了刚刚装的RedHat,在进行安装软件时,终端要求用超级用户安装,结果出现这样的问题:xxx is not in the sudoers file.This incident will be reported
。网上的资源是无限的,解决方法如下:
1.首先需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令”su”的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用”su -“命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
接着操作下面的步骤:
- 移动光标,到最后一行
- 按a,进入append模式
- 输入
xxx(你的用户名) ALL=(ALL) ALL
- 保存退出(按Esc–”输入“:wq””)
0 0
- Fix the problem:xxx is not in the sudoers file.This incident will be reported
- xxx is not in the sudoers file. This incident will be reported (解决办法)
- xxx is not in the sudoers file. This incident will be reported的解决方法
- XXX is not in the sudoers file. This incident will be reported.
- sodu时提示:XXX is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的错误解决方案
- centos 修改xxx is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported.
- XXX is not in the sudoers file. This incident will be reported.
- xxx is not in the sudoers file. This incident will be reported.
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file This incident will be reported
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported.
- xxx is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- Eclipse新建类向导
- WaitForSingleObject函数的使用
- C++全局变量的声明与定义的详解
- SuiShenJi项目_登录界面
- 深入理解java异常处理机制
- xxx is not in the sudoers file.This incident will be reported
- 数据结构之AVL树
- 数据结构与算法分析2.19题
- MySQL 设计与开发规范
- Java对象的序列化和反序列化
- LabVIEW的主界面如何隐藏
- Android_Fragment实现Tab
- iOS9适配
- AFNetworking判断当前手机的网络状态