I would like to execute something like
rtcwake -m off -s 60 without entering a password.
I used visudo to write the following line into /etc/sudoers:
%sudo ALL = NOPASSWD: /sbin/shutdown, /sbin/poweroff, /sbin/halt, /sbin/reboot
Now I can shutdown without entering a password. However, using rtcwake without password does not work. Instead, I get the following message:
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "off" using /dev/rtc0 at Fri Dec 18 17:45:43 2015
shutdown: Need to be root
What is missing?