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 ## 添加改行,保存退出 …………
标签:##,sudoers,will,reported,incident,file,liujiaxin01,root From: https://www.cnblogs.com/liujiaxin2018/p/16737413.html