Hi,
I have written the following and I want cron to run it for me. It is in a
file called /etc/cron.d/katrina
59 22 * * * root passwd -l katrina
00 23 * * * root halt
00 8 * * * root passwd -u katrina
The first line works and locks katrina's password
The second line does nothing at all. What I really want this to do if to drop
back to the login screen but I can't find the command for that. I thought that
halt, shutdown now, shutdown -n now or poweroff, while being overkill should do
the job. They don't
The third line works.
I have checked this by logging in as user and doing su katrina at 22:59 the
command stops working and at 08:00 starts again.
Any ideas what I have done wrong?
--
Regards,
Richard
Tollyboy Products International
http://www.tollyboy.com