Linux 使用sudo时,报错 is not in the sudoers file. This incident will be reported 解决
来源:互联网 发布:python微信自定义菜单 编辑:程序博客网 时间:2024/06/01 10:09
使用sudo时,输入用户密码后,报错:“* is not in thesudoers file.
解决方案:
首需要切换到root身份
$su -
(注意有-,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su-"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo
1、移动光标,到最后一行
2、按a,进入append模式
3、输入
your_user_name ALL=(ALL)
4、按Esc
5、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
- Linux 使用sudo时,报错 is not in the sudoers file. This incident will be reported 解决
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- 解决用户执行sudo 报错:xxx is not in the sudoers file. This incident will be reported
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- linux报"xxx is not in the sudoers file.This incident will be reported"错误
- sudo提示“is not in the sudoers file. This incident will be reported”解决方法
- sudo 提示oracle is not in the sudoers file. This incident will be reported的解决方法
- "sudo su -", oracle is not in the sudoers file. This incident will be reported.
- 普通用户执行sudo报hadoop is not in the sudoers file. This incident will be reported.解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- 解决is not in the sudoers file. This incident will be reported
- oracle is not in the sudoers file.This incident will be reported的解决
- 关于OTRS3.1.3软件包管理器的一个…
- redhat 安装 ZeroMQ, pyzmq 错误解…
- vtiger CRM
- Linux与Windows之间使用FTP互传文…
- ESX常用的TCP/IP端口
- Linux 使用sudo时,报错 is not in the sudoers file. This incident will be reported 解决
- ServiceDesk Plus 8.0&n…
- Linux 安装 mysql5.5.19
- 免费开源的IT资产管理系统GLPI界面…
- linux 重命名文件和文件夹
- GLPI的License: 是一个基于GN…
- Linux中sudo:must be setuid root 解决方…
- 免费开源IT资产管理系统 GLPI
- linux 中 Apache 安装