For some reason NOPASSWD on a single command didn't change anything for me on Slackware, I was only ever able to get it to work with NOPASSWD:ALL which is too permissive for my taste these days. I'll try this line however, maybe it will work with /sbin/shutdown (which is where that program is located on Slackware).
Journaling file system. Yank the cord.
Yes, systemd is convenient. But if you don't want that shit you have to authenticate in order to run the shutdown command. It's dumb as shit.
youruser ALL=(ALL) NOPASSWD: /usr/bin/shutdown
For some reason NOPASSWD on a single command didn't change anything for me on Slackware, I was only ever able to get it to work with NOPASSWD:ALL which is too permissive for my taste these days. I'll try this line however, maybe it will work with /sbin/shutdown (which is where that program is located on Slackware).
Oddly on mine I have
shutdownin both locations. Butwhich shutdownshows that /usr/bin is the "active" one on mine.