sudo user oneliner
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user