Skip to content

Instantly share code, notes, and snippets.

@ochen1
Created September 19, 2020 19:47
Show Gist options
  • Save ochen1/427360138f5829db709119667a8ad076 to your computer and use it in GitHub Desktop.
Save ochen1/427360138f5829db709119667a8ad076 to your computer and use it in GitHub Desktop.
A script to disable asking for password when using sudo.
#!/bin/bash
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment