I've got a laptop running Lubuntu 13.04 and guest account enabled. People forget to shut it down every day so I figured I'd just put a one line script into root's cron to solve that. No dice. It shows up in the syslog every day like it ran, but the computer doesn't turn off. Is it not possible for root to shutdown the machine when another user (not in wheel) is logged in?
Shell script:
#!/bin/bash shutdown -h now
Line in root's crontab:
34 18 * * * /root/shutdownDaily.sh
The script is executable:
-rwxr-xr-x 1 root root 28 Sep 9 17:47 shutdownDaily.sh*