[ubuntu-uk] Scheduling a reboot of Ubuntu?

Rob Beard rob at esdelle.co.uk
Mon Jun 15 13:30:03 BST 2009


Alex Birchall wrote:
> Hi,
>
> I'd like to schedule a reboot of my Ubuntu server.
>
> When I type sudo crontab -l at the prompt, the following is displayed:
>
> #m h dom mon dow	command
> 40 12 * * 0-7 eprints reboot
>
> As I understand it, this should mean that at 40 minutes past 12 each day
> the user eprints will issue the command reboot.
>
> The problem is, nothing appears to be happening.
>   
I would assume it's a permissions issue.  As far as I'm aware to use the 
reboot command the user has to be root.

Running the command reboot from a terminal as a normal user comes back with:

reboot: Need to be root

Rob





More information about the ubuntu-uk mailing list