From 00ce7fd7df4302850f85c7c892afdf8864f79b3e Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Wed, 14 Oct 2020 14:17:02 +0200 Subject: [PATCH] config/yadm/bootstrap: Add password-free reboot --- .config/yadm/bootstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index a048fde..4c71b75 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -6,7 +6,10 @@ sudo sysctl --system # Update sudoers configuration echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor -echo "Defaults timestamp_timeout=30" | sudo tee /etc/sudoers.d/timeout +echo "Defaults timestamp_timeout=20" | sudo tee /etc/sudoers.d/timeout + # Password-free reboot +echo "$USER ALL = NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" | sudo tee /etc/sudoers.d/shutdown + ## Hardware printf '\nHardware\n'