sudoers添加用户【Linux】
2014-05-14 17:40
381 查看
[brokenq@localhost etc]$ sudo yum -y install vsftpd
[sudo] password for brokenq:
brokenq is not in the sudoers file. This incident will be reported.
[brokenq@localhost etc]$
问题:/etc/sudoers文件中没有配置brokenq该用户
解决:
1、su -
切换到root用户,输入root密码
[brokenq@localhost etc]$ su -
Password:
[root@localhost ~]#
2、vim /etc/sudoers
编辑sudoers文件
3、找到root ALL=(ALL) ALL
在下一行添加brokenq ALL=(ALL) ALL
按esc退出
:wq!
强制保存退出
[sudo] password for brokenq:
brokenq is not in the sudoers file. This incident will be reported.
[brokenq@localhost etc]$
问题:/etc/sudoers文件中没有配置brokenq该用户
解决:
1、su -
切换到root用户,输入root密码
[brokenq@localhost etc]$ su -
Password:
[root@localhost ~]#
2、vim /etc/sudoers
编辑sudoers文件
3、找到root ALL=(ALL) ALL
在下一行添加brokenq ALL=(ALL) ALL
按esc退出
:wq!
强制保存退出
相关文章推荐
- Linux系统如何添加普通用户到 sudoers 文件
- linux为用户添加sudo权限sudo: /etc/sudoers is mode 0640, should be 0440?”
- linux下将用户添加到sudoers中
- Linux怎么为用户添加sudoers权限
- Linux 添加普通用户到 sudoers 文件
- Linux怎么添加用户成为sudoers
- Linux怎么添加用户成为sudoers
- [置顶] Linux怎么添加用户成为sudoers
- linux 添加新用户并赋予sudo执行权限
- Ubuntu新添加用户无法sudo问题的解决:修改sudoers
- linux为用户添加sudo权限
- 在linux中将用户添加进sudo组,并不输入密码的方法
- linux为用户添加sudo权限
- linux给用户添加sudo权限
- Linux为用户添加sudo权限
- linux为用户添加sudo权限
- LINUX总结第2篇:添加用户到sudoer列表中(转载)
- Linux用户添加到sudo组并且不用输入密码
- Linux添加sudo用户
- XXX is not in the sudoers file 解决方案:赋予linux普通用户挂载光驱的权限