After the Circus

Random Sample
Lit Up Like a Toe

contact me
jean at geemoo dot ca

Jul 1, 2014
Sudo normally prompts you for a password whenever you do stuff, but it's possible to set it up to not do so. This can be handy for commands that aren't much of a security risk, like shutdown or reboot. Just add a line to your sudoers file with visudo that looks like these.

jean ALL=(ALL) ALL
jean ALL=NOPASSWD: /sbin/reboot, /sbin/halt

The first line gives you normal password protected sudo access to all commands like you have probably already setup. The second line gives you passwordless access to the reboot and halt commands. Make sure they are in this order, as sudo rules are intepretted such that later rules override the newer ones (AKA, not like a firewall).