Auto shutdown, How?

Steve Riley steve at rileyz.net
Sat Aug 17 08:04:58 UTC 2013


On 2013-08-17 09:34:36 Nils Kassube <kassube at gmx.net> wrote:
>
> Steve Riley wrote:
> > On 2013-08-17 08:55:50 Knapp <magick.crow at gmail.com> wrote:
> > > I want my daughters computer to shut itself off automatically at
> > > 9pm. How can I do this? It would be good if she can't stop it! She
> > > has no sudo, really no passwords at all.
> > 
> > Put a shutdown in root's crontab.
> 
> > Then add the following line at the end:
> > 0 21 * * * /sbin/shutdown -P now
> 
> > She could, of course, power the computer right back up after that.
> 
> And if you change the crontab line like this
> 
> * 0-5,21-23 * * * /sbin/shutdown -P now
> 
> she can still power it up, but it will shut down again at the next full 
> minute until 6am.

Sneaky :)

...Steve




More information about the kubuntu-users mailing list