【linux基础】What is the difference between `root ALL=(ALL:ALL) ALL` and `root ALL=(ALL) ALL`?

 

 

root ALL=(ALL:ALL) ALL

The first field indicates the username that the rule will apply to(root).
First “ALL” indicates that this rule applies to all hosts.
Second “ALL” indicates that the root user can run commands as all users.
Third “ALL” indicates that the root user can run commands as all groups.
Forth “ALL” indicates these rules apply to all commands.

 

参考

1. What is the difference between `root ALL=(ALL:ALL) ALL` and `root ALL=(ALL) ALL`?

2.How To Edit the Sudoers File

posted on 2021-04-26 19:16  鹅要长大  阅读(250)  评论(0编辑  收藏  举报

导航