您的位置:首页 > 运维架构 > Linux

centos 6.7 提示 XX用户不在sudoers 文件中

2016-05-22 01:00 435 查看
以下方法是经过本人测试过的。系统是centos 6.7

1、用su命令登陆 root

2、接着输入visudo 命令,打开sudo 的配置文件,找到

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

复制root ALL=(ALL) ALL 这个到下一行,然后将root 这个词修改为本机的用户名,即可

看图。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: