PDA

View Full Version : [ubuntu] cron broken - why ??



neill
May 17th, 2008, 01:43 PM
hi

i'm using server 8.04 and having trouble running cron jobs

here's the crontab: /var/spool/cron/crontabs/root


# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.HJI1he/crontab installed on Wed May 14 23:30:26 2008)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
5 18 * * * /etc/webmin/cron/tempdelete.pl
@hourly antivir --update #antivir update
57 3 * * * /home/neill/antivir.sh #nightly antivir run
0,31 4 * * * /etc/webmin/time/sync.pl
43 4 * * * logwatch #logwatch

if i run any of the above manually they all do exactly as i expect

cron seems to be running


neill@bowzer:~$ ps aux | grep cron
root 5883 0.0 0.0 2104 900 ? Ss May14 0:00 /usr/sbin/cron
neill 10477 0.0 0.0 3004 752 pts/0 R+ 13:39 0:00 grep cron

but the log file has this

/var/log/cron.log


May 17 10:00:01 bowzer CRON[10133]: User account has expired
May 17 10:17:01 bowzer CRON[10134]: User account has expired
May 17 11:00:01 bowzer CRON[10156]: User account has expired
May 17 11:17:01 bowzer CRON[10158]: User account has expired
May 17 12:00:01 bowzer CRON[10181]: User account has expired
May 17 12:17:01 bowzer CRON[10196]: User account has expired
May 17 13:00:01 bowzer CRON[10215]: User account has expired
May 17 13:17:01 bowzer CRON[10336]: User account has expired

and not much else

needless to say the jobs don't run when they should

:(

anyone any idea what's going on ???

ta

/neill

koenn
May 17th, 2008, 07:58 PM
did you create those cron jobs a user "bowzer" and has that account since been deleted ?

neill
May 19th, 2008, 12:48 AM
bowzer is the server name

the jobs were created via the webmin inteface - but i think i've found the problem
for whatever reason the root account was shown as expiraing in 1970 (unix zear 0 i believe)
i corrected that and it seems to be working now

thanks