Skip to content

Instantly share code, notes, and snippets.

@angelikatyborska
Created March 1, 2019 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelikatyborska/7f561ab087217b7d3853fb37db81821e to your computer and use it in GitHub Desktop.
Save angelikatyborska/7f561ab087217b7d3853fb37db81821e to your computer and use it in GitHub Desktop.
Add user that can sudo without a password
useradd foo --create-home -G sudo
echo 'foo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment