确保没有低于您提到的规则的规则覆盖它。来自man sudoers(1.7.2p2):
When multiple entries match for a user, they are applied in order.
Where there are multiple matches, the last match is used (which is not
necessarily the most specific match).
Run Code Online (Sandbox Code Playgroud)