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

 

001、问题 (普通用户没有sudoer权限)

 

 

002、解决方法

[liujiaxin01@PC1 coreutils-8.32]$ su - root         ## 切换至root用户
Password:
Last login: Wed Sep 28 11:22:11 CST 2022 on pts/1
[root@PC1 ~]#

 

 

003、编辑配置文件 /etc/sudoers

vim /etc/sudoers
…………
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
liujiaxin01     ALL=(ALL)       ALL  ## 添加改行,保存退出
…………

 

posted @   小鲨鱼2018  阅读(59)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
历史上的今天:
2021-09-28 -bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
2020-09-28 linux系统中split命令
2020-09-28 R语言中创建数据框、数据框的常规操作
点击右上角即可分享
微信分享提示