linux命令:配置sudo
来源:互联网 发布:斯蒂芬马布里nba数据 编辑:程序博客网 时间:2024/05/17 02:08
sudo命令简单配置
1)首先确认是否安装包
[root@test ~]# rpm -qa |grep sudo
sudo-1.7.2p1-13.el5
[root@test ~]#
没有的话安装镜像应该有。
2)配置
vi /etc/sudoers
## Allow root to run any commands anywhereroot ALL=(ALL) ALL## Allows members of the 'sys' group to run networking, software,## service management apps and more.# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS## Allows people in group wheel to run all commands# %wheel ALL=(ALL) ALL## Same thing without a password# %wheel ALL=(ALL) NOPASSWD: ALL## Allows members of the users group to mount and unmount the## cdrom as root# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom## Allows members of the users group to shutdown this system# %users localhost=/sbin/shutdown -h noworacle ALL=(ALL) NOPASSWD: ALL参照文本里黑体添加,我不想sudo时输入密码所以 NOPASSWD:ALL
0 0
- linux命令:配置sudo
- Linux sudo命令配置与使用
- linux su/sudo命令
- linux sudo 命令
- Linux:Sudo命令使用
- linux sudo 命令详解
- linux sudo 命令
- Linux下 sudo命令
- linux sudo命令
- Unix/Linux sudo命令
- linux sudo 命令
- linux命令“sudo”
- Linux sudo 命令
- Linux 命令 sudo
- linux sudo 命令
- linux sudo 命令
- Linux sudo 命令详解
- linux sudo 命令
- iOS学习之 - 线程的生命周期
- Eclipse复制当前行问题(Intel屏幕旋转冲突)
- Docker源码分析(十一):镜像存储
- windows7下添加 在当前目录打开Cygwin
- java 中的单元 ,二元,三元运算符
- linux命令:配置sudo
- c++第1次实验-3
- OpenCV 下载驿站(百度云盘下载,同步更新)
- linux中线程的实现以及跟windows系统的比较
- sftp
- oracle11g R2 grid和database卸载
- adt更新地址
- webrtc 的回声抵消(aec、aecm)算法简介
- PullableListView.canPullDown(PullableListView.java:33)----BUG