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 这个词修改为本机的用户名,即可
看图。
1、用su命令登陆 root
2、接着输入visudo 命令,打开sudo 的配置文件,找到
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
复制root ALL=(ALL) ALL 这个到下一行,然后将root 这个词修改为本机的用户名,即可
看图。
相关文章推荐
- centos6.5 ifconfig不显示eth0地址
- Linux下C/C++编译器GCC/G++使用简介
- Linux下的Hive与Mysql安装
- 阿里云CentOs环境配置
- Linux下开发环境(gcc/g++/makefile/gdb)
- linux超级块和inode 详解 和 df 、du 命令详解与环境变量
- Centos6安装桌面后无法使用键盘和鼠标
- ARM Linux启动过程分析
- Vim:打造Linux C/C++程序员的编辑器
- CentOS6.7安装vncserver及xrdp实现远程桌面
- Linux下使用Vim进行C/C++ 编程基础知识详解
- centos6.5配置静态ip
- LINUX 新增的磁盘不建立分区,直接建立文件系统并挂载怎么办?
- Linux07--Shell程序设计03 通配符与正则表达式
- linux上link命令使用心得
- linux svn中的blame命令
- linux重定向命令
- Centos安装笔记
- CENTOS7手动安装CEPH
- LINUX文件权限漫谈