From d4bd1a89fdf044601582fef6ddabe1fd6bd6d008 Mon Sep 17 00:00:00 2001 From: mara Date: Sun, 9 Jun 2024 11:43:10 +0200 Subject: [PATCH] Add User NOPASSWD to shutdown now and reboot --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 17f2a77..c9d43e8 100644 --- a/install.sh +++ b/install.sh @@ -379,6 +379,8 @@ else fi # ------------------------------------------------------------------------------------------------- +# Add User NOPASSWD to shutdown now and reboot +echo "$USER ALL=(ALL) NOPASSWD: /sbin/shutdown now, /sbin/reboot" | sudo tee /etc/sudoers.d/$USER && sudo visudo -c -f /etc/sudoers.d/$USER # ------------------------------------------------------------------------------------------------- echo -e "${YELLOW} MPD Setup & config START ${NC}"