Skip to content

Instantly share code, notes, and snippets.

@VSharapov
Created February 18, 2025 22:50
Show Gist options
  • Select an option

  • Save VSharapov/3b4f21acf394b23c80f04d7700ea58c9 to your computer and use it in GitHub Desktop.

Select an option

Save VSharapov/3b4f21acf394b23c80f04d7700ea58c9 to your computer and use it in GitHub Desktop.
Make sudo passwordless for current user
#!/usr/bin/env bash
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/$USER > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment