From f84adbf727add98e33135d6ef9a793e8d79b6e6b Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:37 +0100 Subject: refactor(sudoers): drop NOPASSWD poweroff/reboot, polkit handles it systemctl {poweroff,reboot,suspend} are authorized by polkit for the active seat's user without a password, so the bespoke sudo rule is no longer needed now that the power menu uses systemctl directly. --- etc/sudoers-rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'etc') diff --git a/etc/sudoers-rs b/etc/sudoers-rs index 3a75395..7fc31da 100644 --- a/etc/sudoers-rs +++ b/etc/sudoers-rs @@ -24,6 +24,3 @@ Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/bin" # Root and the wheel group can run anything (after a password prompt). root ALL=(ALL:ALL) ALL %wheel ALL=(ALL:ALL) ALL - -# Passwordless poweroff/reboot (parity with the previous doas.conf). -%wheel ALL=(ALL) NOPASSWD: /usr/bin/poweroff, /usr/bin/reboot -- cgit v1.3.1