Skip to content

Instantly share code, notes, and snippets.

@cnnrrss
Created March 11, 2022 03:12
Show Gist options
  • Save cnnrrss/c870f5ba26cee1ab5a80c0ca2d4991c3 to your computer and use it in GitHub Desktop.
Save cnnrrss/c870f5ba26cee1ab5a80c0ca2d4991c3 to your computer and use it in GitHub Desktop.
avoid retyping your password for a sudo call, and allow no password sudo for a binary
sudo sh -c 'echo "%admin ALL=(ALL) NOPASSWD: /usr/local/bin/openconnect" > /etc/sudoers.d/openconnect'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment