Hadoop之——Linux下sudo命令报错:hadoop is not in the sudoers file. This incident will be reported.
转载请注明出处: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.相关推荐
- 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 ...
- 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 ...
- 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. 原因分析:一般这种情况是修改了用户名, ...
- Centos普通用户权限报错:** is not in the sudoers file. This incident will be reported.
在centos下有一个普通用户hadoop,在用hadoop创建文件夹: [hadoop@localhost /] sudo mkdir /soft [sudo] password for hadoo ...
- 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 ...
- linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls
linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls 报错 解决 ...
- Linux下Tomcat启动报错:port already in use
Linux下Tomcat启动报错:port already in use,导致该问题的原因很多,我在这里记录一下我遇到的情况的解决办法. 检查了${TOMCAT_HOME}/conf/server.x ...
- linux 卸载 bison,linux下的bison报错,
linux下的bison报错,求高手指教!急 想用flex+bison写个简单的编译器,生成三地址中间代码.结果bison的编译就一堆警告...大概是说定义的文法没有用之类的. 这个是flex文件 % ...
- 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 ...
最新文章
- c#实现 改进弧长法判断点在多边形里面
- 树莓派制作“数码显微镜”,了解一下?
- jq鼠标移入移除事件
- Android中TimePicker时间选择器的使用和获取选择的时和分
- JavaScript中BOM操作
- Layui--颜色选择器layui.colorpicker
- 二端口网络的归一化转移矩阵[a]
- 慢性病管理系统/案列/APP/小程序/网站
- C#抖音无水印视频地址解析
- 词根词缀|pen/pend/peri/pet/photo等衍生单词
- 034-OpenCV HSV颜色识别图片
- 初中数学计算机图片,初中数学课件背景图片大全.doc
- 王垠:清华梦的粉碎—写给清华大学的退学申请 2005.9.22
- 购车指南首次买车必看系列之(二): 产权篇
- Windows 10 正式版原版ISO镜像
- Android Studio通过模拟器联网
- java实现中国象棋 源代码
- c语言中TR1=1什么意思,c – 如何在Visual Studio 2010(tr1 :: function)中使用tr1?
- web前端-微信小程序开发学习
- 读书笔记——我的学习与研究经历(杨振宁/2012)
热门文章
- js判断文字长度(区分中文及英文)
- ubuntu下hadoop,spark配置
- AW250 磁力块(分块)
- Flink大数据实时计算系列-Flink写出多个parquet小文件处理方法、Presto的介绍与使用场景
- Flink大数据实时计算系列-Flink的CheckPoint原理 Flink分布式环境下的CheckPoint原理
- 笔试---库特君在吃面条
- DeepLearning(深度学习)原理与实现(二)
- 光通信器件与系统(西交大朱京平笔记) -5-6 EDFA的工作原理
- 程序员成神之路,一年挖坑,五年扛旗,十年成神
- 在 Visual Basic 6 中让用户在运行时移动和调整控件大小