Skip to content

Instantly share code, notes, and snippets.

@ochen1
Created September 19, 2020 19:47
Embed
What would you like to do?
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