Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cgtarmenta/fffdc441e5ecdc13ef3deb40e434df1e to your computer and use it in GitHub Desktop.
Save cgtarmenta/fffdc441e5ecdc13ef3deb40e434df1e to your computer and use it in GitHub Desktop.
Allow user to use sudo without password
sudo sh -c 'echo "${SUDO_USER} ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/${SUDO_USER}' && sudo chmod 440 /etc/sudoers.d/${SUDO_USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment