Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active August 29, 2015 14:19
Show Gist options
  • Save Voronenko/784ed56e1093f05e9b0d to your computer and use it in GitHub Desktop.
Save Voronenko/784ed56e1093f05e9b0d to your computer and use it in GitHub Desktop.
sudo for devops - prevent from asking passwords
#make sure slavko is added to sudoers group
# sudo usermod -aG sudo <username>
# Allow members of group sudo to execute any command without asking password
#%sudo ALL=(ALL:ALL) ALL
%sudo ALL=(ALL) NOPASSWD:ALL
#allow specific user to do so without password, where slavko is the username
slavko ALL=(ALL) NOPASSWD: ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment