sudo su user 和 sudo user 的区别
2013-08-06 13:19
288 查看
“sudo” lets you run commands in your own user account with root privileges. It uses a config file (/etc/sudoers) which lists which users have rights to specific actions (run commands as root, etc.) When invoked, it asks for the password of the user who started it.
[user1@server]$ sudo users
[sudo] password for user1:
“ su “ lets you switch user so that you're actually logged in as root. It starts another shell instance with privileges of the target user.
To ensure you have the rights to do that, it asks you for the password of the target user. As we enabled you to switch user through cfengine,It won’t ask you for target password.
[user1@server]$ sudo su user2
[user@server]$
[user1@server]$ sudo users
[sudo] password for user1:
“ su “ lets you switch user so that you're actually logged in as root. It starts another shell instance with privileges of the target user.
To ensure you have the rights to do that, it asks you for the password of the target user. As we enabled you to switch user through cfengine,It won’t ask you for target password.
[user1@server]$ sudo su user2
[user@server]$
相关文章推荐
- Linux学习笔记之——su、sudo命令使用及区别
- su与sudo的区别及简单配置
- su 和 sudo su 的区别
- linux学习之sudo和su的区别
- linux su和sudo命令的区别及C…
- 解析su,su -,sudo的区别
- 关于su 、su - 及 sudo的区别
- sudo 和su的区别
- Linux 的su 与sudo 的区别,查看所有用户
- su与sudo的区别
- su和sudo的区别与使用
- su与sudo的区别
- sudo su runuser的区别
- ubuntu su sudo sudo–i 区别
- sudo与su区别
- sudo,,sudo-i ,,su的区别
- linux权限之su和sudo的区别
- 深入理解 sudo 与 su 之间的区别【转】
- su和sudo的区别 (/libtool: arm-linux-gcc command not found )
- su和sudo的区别与使用