转载请注明出处:https://blog.csdn.net/l1028386804/article/details/93380235

当在终端执行sudo命令时,系统提示“cuser is not in the sudoers file”:

具体报错信息为:

-bash-4.1$ sudo vim /etc/profileWe trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:#1) Respect the privacy of others.#2) Think before you type.#3) With great power comes great responsibility.[sudo] password for hadoop:
hadoop is not in the sudoers file.  This incident will be reported.

其实就是没有权限进行sudo,解决方法如下(这里假设用户名是hadoop):

1.切换到root用户:$ su

2.打开/etc/sudoers文件:$vim /etc/sudoers

3.修改文件内容:

找到“root    ALL=(ALL)       ALL”一行,在下面插入新的一行,内容是“hadoop    ALL=(ALL)       ALL”,

然后在vim键入命令“wq!”保存并退出。

注:这个文件是只读的,不加“!”保存会失败。

4.退出root用户:$ exit

Hadoop之——Linux下sudo命令报错:hadoop is not in the sudoers file. This incident will be reported.相关推荐

  1. sudo 执行报错centos is not in the sudoers file. This incident will be reported.

    执行sudo -i,提示如下信息 [centos@localhost ~]$ sudo -i [sudo] password for centos:  centos is not in the sud ...

  2. Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决

    Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决 参考:https://b ...

  3. ubuntu下执行sudo命令提示:xx is not in the sudoers file. This incident will be reported.

    在执行sudo命令时会有如下提示: xx is not in the sudoers file. This incident will be reported. 原因分析:一般这种情况是修改了用户名, ...

  4. Centos普通用户权限报错:** is not in the sudoers file. This incident will be reported.

    在centos下有一个普通用户hadoop,在用hadoop创建文件夹: [hadoop@localhost /] sudo mkdir /soft [sudo] password for hadoo ...

  5. Linux下MySQL起动报错The server quit without updating PID file

    MySQL起动报错The server quit without updating PID file (/usr/local/mysql/data/ 查看日志: 131206 23:10:21 mys ...

  6. linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls

    linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls 报错 解决 ...

  7. Linux下Tomcat启动报错:port already in use

    Linux下Tomcat启动报错:port already in use,导致该问题的原因很多,我在这里记录一下我遇到的情况的解决办法. 检查了${TOMCAT_HOME}/conf/server.x ...

  8. linux 卸载 bison,linux下的bison报错,

    linux下的bison报错,求高手指教!急 想用flex+bison写个简单的编译器,生成三地址中间代码.结果bison的编译就一堆警告...大概是说定义的文法没有用之类的. 这个是flex文件 % ...

  9. Linux ** is not in the sudoers file. This incident will be reported.

    Linux 报错: ** is not in the sudoers file. This incident will be reported. 错误原因 顾名思义,该用户没有在 sudoers fi ...

最新文章

  1. c#实现 改进弧长法判断点在多边形里面
  2. 树莓派制作“数码显微镜”,了解一下?
  3. jq鼠标移入移除事件
  4. Android中TimePicker时间选择器的使用和获取选择的时和分
  5. JavaScript中BOM操作
  6. Layui--颜色选择器layui.colorpicker
  7. 二端口网络的归一化转移矩阵[a]
  8. 慢性病管理系统/案列/APP/小程序/网站
  9. C#抖音无水印视频地址解析
  10. 词根词缀|pen/pend/peri/pet/photo等衍生单词
  11. 034-OpenCV HSV颜色识别图片
  12. 初中数学计算机图片,初中数学课件背景图片大全.doc
  13. 王垠:清华梦的粉碎—写给清华大学的退学申请 2005.9.22
  14. 购车指南首次买车必看系列之(二): 产权篇
  15. Windows 10 正式版原版ISO镜像
  16. Android Studio通过模拟器联网
  17. java实现中国象棋 源代码
  18. c语言中TR1=1什么意思,c – 如何在Visual Studio 2010(tr1 :: function)中使用tr1?
  19. web前端-微信小程序开发学习
  20. 读书笔记——我的学习与研究经历(杨振宁/2012)

热门文章

  1. js判断文字长度(区分中文及英文)
  2. ubuntu下hadoop,spark配置
  3. AW250 磁力块(分块)
  4. Flink大数据实时计算系列-Flink写出多个parquet小文件处理方法、Presto的介绍与使用场景
  5. Flink大数据实时计算系列-Flink的CheckPoint原理 Flink分布式环境下的CheckPoint原理
  6. 笔试---库特君在吃面条
  7. DeepLearning(深度学习)原理与实现(二)
  8. 光通信器件与系统(西交大朱京平笔记) -5-6 EDFA的工作原理
  9. 程序员成神之路,一年挖坑,五年扛旗,十年成神
  10. 在 Visual Basic 6 中让用户在运行时移动和调整控件大小