diff --git a/scripts/sudo-user.sh b/scripts/sudo-user.sh index b8ee8c9..9fafd7e 100755 --- a/scripts/sudo-user.sh +++ b/scripts/sudo-user.sh @@ -1,5 +1,8 @@ #!/bin/bash +# oneliner for quick copy +# echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/$USER + set -E -o errexit -o nounset -o pipefail USER_FILE="/etc/sudoers.d/$USER"