Created
July 12, 2024 08:29
-
-
Save cgtarmenta/fffdc441e5ecdc13ef3deb40e434df1e to your computer and use it in GitHub Desktop.
Allow user to use sudo without password
This file contains hidden or 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 "${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