`

ma系列之-27-sudo

 
阅读更多

 

 

 

1 完成比如用户管理/定义网络属性等root超级管理员才具有的功能 
	2 在某些时刻发生问题能够追踪问题的执行者   
    的一种机制。
	即,一个普通用户(tom/jerry)能够以另外一个身份执行某条命令,但是不需要切换到这个用户身份上来执行,只不过执行命令的这一刻拥有了对应用户的权限
su: switch user	
特点: 能够限定某个用户能够以另外哪一个用户的身份通过哪个主机来执行什么命令
并且需要tom/jerry输入自己的密码(防止别人冒充tom/jerry在目标主机中操作)

sudo配置文件:  [root@chinadaas11 ~]# cat  /etc/sudoers
[root@chinadaas11 ~]# ll  /etc/sudoers
-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers   
## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now
.......

sudo配置文件展示的条目介绍:
who	which_host=(runas) command

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics