在CentOS中执行sudo命令时报错:ctc is not in the sudoers file. This incident will be reported.
一、报错
ctc is not in the sudoers file. This incident will be reported
说明:ctc用户不具备sudo的权限
二、解决
1、首先,输入su,切换到root用户下;
然后输入sudo chmod u+w /etc/sudoers 赋予sudoers文件写权限
输入sudo vi /etc/sudoers 点击回车。出现Press ENTER or type command to continue,点击Enter键。
2、按向上和向下箭头导航到需要编辑的位置,如图,在大约倒数第16行的位置,添加
xxx ALL=(ALL) ALL。xxx为自己的用户名。添加的方法:点击键盘上的“Insert”键,然后输入。
3、输入完成后,按esc退出编辑模式。然后按shift键加:,输入wq。点击回车,即保存并退出到终端。
4、按ctrl + D退出会话,至此,给用户ctc添加权限成功。
在CentOS中执行sudo命令时报错:ctc is not in the sudoers file. This incident will be reported.相关推荐
- 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. 原因分析:一般这种情况是修改了用户名, ...
- 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 ...
- Centos普通用户权限报错:** is not in the sudoers file. This incident will be reported.
在centos下有一个普通用户hadoop,在用hadoop创建文件夹: [hadoop@localhost /] sudo mkdir /soft [sudo] password for hadoo ...
- 执行wsl 命令时报错 nsenter: failed to execute 564: No such file or directory
问题 在cmd命令框中执行wsl命令时报错 nsenter: failed to execute 564: No such file or directory无法进入Ubuntu子系统中 C:\Use ...
- 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 ...
- 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 ...
- 【Cmake】执行cmake命令时报错:No XSLT processor found
一.问题描述 在ubuntu中,在生成Doc(文档)中,执行cmake命令时报错:No XSLT processor found 二.原因查找 google该错误信息,原因是确实ubuntu中没有安装 ...
- 执行ldapadd 命令时报错:ldap_bind: Invalid credentials (49)
转载自:http://www.linuxfly.org/post/671/ 某项目,需要在Asianux 4.0上配置LDAP服务.参考以前的[原]操作ldap 数据库一文,在执行ldapadd 命令 ...
- mysql grant reload,MySQL执行GRANT命令时报错ERROR 1045解决办法
摘要 腾兴网为您分享:MySQL执行GRANT命令时报错ERROR 1045解决办法,杂志迷,云闪付,一直播,小象优品等软件知识,以及592美剧,乐天网络电视,吃鸡无后座,易语言宝盒,语音转文字软件, ...
- 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 ...
最新文章
- java自己实现读写锁_关于读写锁算法的Java实现及思考
- 正则表达式中的非捕获组是什么?
- StratifiedShuffleSplit 交叉验证
- c++第n小的质数_形形色色的素数 -- 质数定理
- Ora-00600 错误的代码含义及常用查询
- 做SEO优化第三步:学习了解HTML基础知识
- 高斯克吕格投影与墨卡托投影(通用横轴墨卡托、web墨卡托等)
- xmake经验总结1:解决c++ future/promise抛出std::system_error的问题
- mysql initialize 什么意思_mysql initialize
- C盘Temp文件夹的内容可以删掉
- 简单易懂!推荐给自学python的小项目实战!
- Android licenses not accepted
- 记录:如何解决Ubuntu20.04无法联网问题【亲测有效】
- 领航优配|货拉拉冲刺港交所:2022年首度盈利,闭环交易总额全球第一
- 视频教程-《信息学竞赛-C语言》 DAY30-清华尹成老师-C/C++
- Docker 生产环境之安全性 - 适用于 Docker 的 AppArmor 安全配置文件
- 求a100的值,an是一个集合{2^s+2^t且t>s>=0}程序验证
- Failed to build custom metric java.lang.NumberFormatException: For input string: “∞“
- Spark网格搜索——训练验证集拆分
- 兼容Vista 赛门铁克公测新杀毒软件
热门文章
- 如何运行ABY,以及一些例子展示
- 大手笔:斥资500亿美金 大众集团加速自动驾驶
- 印章提取文matlab,【Matlab学习手记】简单的印章提取
- sparql查询实例
- 码农很多,但程序员并不多
- ffmpeg结构体(2)之AVFormatContext及其相关函数
- Linux命令详解(8)
- 2022-2028年中国油管产业竞争现状及投资策略研究报告
- 10个最难的 Python 问题
- failed to parse the connection string near ';useSSL=falseamp;serverTimezone=Hongkong'.