Skip to content

Instantly share code, notes, and snippets.

@lovejavaee
Last active November 29, 2018 12:30
Show Gist options
  • Save lovejavaee/cb84a0d2cb93054415c9d9c62d63b061 to your computer and use it in GitHub Desktop.
Save lovejavaee/cb84a0d2cb93054415c9d9c62d63b061 to your computer and use it in GitHub Desktop.
Make sure to place username ALL=(ALL) NOPASSWD:ALL beneath %sudo ALL=(ALL:ALL) ALL since it will use the last entry that applies to the user.
You could also just replace %sudo ALL=(ALL:ALL) ALL with %sudo ALL=(ALL) NOPASSWD:ALL and not worry about your entry placement.
https://github.com/Microsoft/WSL/issues/1476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment