Created
March 11, 2022 03:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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