使用当前用户执行sudo时出现:

原因:当前用户没有权限执行root的转换权限,没有归属到sudo组里面。

解决:

(我这里把所有权限都分配给当前用户,只要sudo,然后输入当前用户的密码就可以)

①:切换到root身份
   $su -
   (注意有-)

②:$visudo

③:修改,加入sudo组(加入最后一行:sjg ALL = (ALL) ALL

)

好了,解决!

参考: http://blog.csdn.net/zhuqinglu/article/details/2050927

转载于:https://blog.51cto.com/4610383/1396013

Linux:is not in the sudoers file相关推荐

  1. Linux下is not in the sudoers file解决方法

    Linux下is not in the sudoers file解决方法 当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:用户名 is not in the sudoers file. 原 ...

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

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

  3. 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 ...

  4. 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 ...

  5. 【Linux】XXX is not in the sudoers file …… 的解决方案

    XXX is not in the sudoers file -- 网上资料都告诉大家,解决方法是改root ALL=(ALL) ALL那里,可能有的新手看不懂,这里解释一下. 在终端执行sudo命令 ...

  6. centos普通用户权限问题解决:hadoop is not in the sudoers file. This incident will be reported.

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

  7. linux sudo命令错误 is not in the sudoers file

    当在终端执行sudo命令时,系统提示"hadoop is not in the sudoers file": 其实就是没有权限进行sudo,解决方法如下(这里假设用户名是cuser ...

  8. 【linux】xx is not in the sudoers file 解决办法

    原帖地址:http://blog.sina.com.cn/s/blog_4ef045ab0100j59t.html 我用的是redhat5.4,在一般用户下执行sudo命令提示llhtiger is ...

  9. 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. 原因分析:一般这种情况是修改了用户名, ...

最新文章

  1. php调用selenium,从php调用python selenium
  2. 【错误记录】Android 应用安装后出现两个启动图标 ( 排查应用及依赖库中配置了 android.intent.category.LAUNCHER 的 Activity )
  3. Pandas的学习(2.Series的索引和切片、基本概念以及Series的运算)
  4. 嵌入式linux学习
  5. HDU2111 Saving HDU 【贪心】
  6. ValueStack中的context与ActionContext的区别
  7. PSP记忆棒文件放置结构图
  8. 教你同时查询安能物流多个单号的物流情况并保存
  9. 单点登录的CAS实践
  10. html 菜鸟驿站,菜鸟驿站
  11. 无需Root实现Android手机屏幕流畅投影到电脑进行演示(附软件下载)
  12. 全球及中国电力行业建设策略与十四五供需战略规划报告2021-2027年
  13. MongoDB使用账号密码连接
  14. 3GPP TS 23501-g51 中英文对照 | 4.4.7 MSISDN-less MO SMS Service
  15. 【python】如何快速生成26位字母表?这里看过来。
  16. input标签checkbox选中触发事件的方法
  17. Caused by: java.net.ConnectException: Call From hadoop1/192.168.1.201 to hadoop1:8020 failed on conn
  18. 时事评论---宣誓不欠薪,好一场秀
  19. (python 作业)线性回归预测房价
  20. Docker shipyard 笔记

热门文章

  1. Web Worker 你知道吗?
  2. Java查询对象中匹配元素_用LinkedList如何实现搜索指定对象的元素
  3. mysql数据类型选择_MySQL学习笔记(二):MySQL数据类型汇总及选择参考
  4. Karoly Nyisztor
  5. 在java编程中会使用汉字字符_在java程序中将中文字符写入文件中或者是将文件中的中文字符读入程序时会出现乱码或者一串“?”,求...
  6. 如何将Web项目的默认编译输出目录改为WebContent/WEB-INF/classe
  7. mipi 屏 通过寄存器调背光
  8. 高性能工业级16位高精度UART转PWM接口SOC芯片
  9. 儿童心理健康的十项注意
  10. 任何时候都不要轻易满仓