sudo user oneliner

This commit is contained in:
lachtan
2024-09-10 06:09:52 +02:00
parent cb9986f490
commit 71486cfdf8

View File

@@ -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"