# Allow wedding-phone user to shutdown and reboot without password # Copy this file to /etc/sudoers.d/wedding-phone-shutdown # Usage: sudo cp wedding-phone-shutdown /etc/sudoers.d/wedding-phone-shutdown # Then: sudo chmod 0440 /etc/sudoers.d/wedding-phone-shutdown # Allow user to run shutdown and reboot commands without password berwn ALL=(ALL) NOPASSWD: /sbin/shutdown -h +1 berwn ALL=(ALL) NOPASSWD: /sbin/shutdown -h now berwn ALL=(ALL) NOPASSWD: /sbin/reboot