Skip to content

Commit

Permalink
sudoers ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
pew authored Jul 23, 2024
1 parent c99a1d6 commit 443c33a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions man/sudo, su, n'stuff.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jonas ALL=(ALL:ALL) NOPASSWD: ALL

## `sudoers` file ordering

if your `NOPASSWD` option from above doesn't work, the ordering matters:
**tl;dr:** put your own entry to the bottom of the file

if your `NOPASSWD` option doesn't work, the ordering matters:

> 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).
>

0 comments on commit 443c33a

Please sign in to comment.