关于centos中的/etc/sudoers文件中的权限设定
来源:互联网 发布:莎莎源码网 编辑:程序博客网 时间:2024/06/08 03:31
我们看到/etc/sudoers文件中有这种设定:
## Allows people in group wheel to run all commands# %wheel ALL=(ALL) ALL## Same thing without a password# %wheel ALL=(ALL) NOPASSWD: ALL
其中的 NOPASSWD: ALL 是什么意思呢?看一下下面:
*#FULLTIMERS可以运行任何命令在任何主机而不用输入自己的密码
FULLTIMERS ALL = NOPASSWD: ALL*
非常好,也就是说,设置为NOPASSWD: ALL的用户,可以只用sudo就变身为root用户,very good!
我们可以随便设置一个用户为:
somealreadyexistuser ALL=(ALL) NOPASSWD: ALL
那么这个somealreadyexistuser用户就可以随时变身为root用户了!
参考自:http://www.linuxsir.org/bbs/thread307157.html
0 0
- 关于centos中的/etc/sudoers文件中的权限设定
- /etc/sudoers中的含义
- /etc/sudoers中的含义
- 请教/etc/sudoers中的含义
- 修改/etc/sudoers权限
- 解决CentOS sudo提示用户不在sudoers文件中的方法
- 修改/etc/sudoers文件出错
- linux /etc/sudoers 文件说明
- linux修改/etc/sudoers文件
- 用户不在sudoers文件中的解决方法
- 用户不在sudoers文件中的解决方法 .
- 用户不在sudoers文件中的解决方法
- 用户不在sudoers文件中的解决方法
- 用户不在sudoers文件中的解决方法
- 解决用户不在sudoers文件中的问题
- 用户不在sudoers文件中的解决方法
- 用户不在sudoers文件中的解决方法
- 普通用户不在sudoers文件中的解决方法
- Android源码学习(3)Android repo 魔法
- 托盘冒泡消息
- LoadLibrary加载库失败,getlasterror = 193.
- Android源码学习(4)在Ubuntu11.04上编译Android
- 使用LwIP回调编程实现paho开源MQTT库的移植
- 关于centos中的/etc/sudoers文件中的权限设定
- 如何学习mysql
- 设计模式(一)之适配器模式
- Android源码学习(5)Android编译系统之envsetup.sh
- git报错fatal: HTTP request failed
- C/C++赋值中的退化规则
- Nginx Http负载均衡
- POJ 1190 生日蛋糕
- 如何使用AFNetworking进行上传图片