1830231 Members
1826 Online
109999 Solutions
New Discussion

Re: cron not working

 
TJ Toedebusch
Occasional Advisor

cron not working

I am getting the following in the /var/log/cron file and none of my root cron jobs are running:

May 5 16:05:01 pldh016 crond[27623]: User account has expired
May 5 16:05:01 pldh016 crond[27625]: User account has expired
May 5 16:05:01 pldh016 crond[27634]: User account has expired
May 5 16:05:01 pldh016 crond[27628]: User account has expired
May 5 16:05:01 pldh016 crond[27621]: User account has expired
May 5 16:05:01 pldh016 crond[27630]: User account has expired

I have tried the chage on root to no avail. Any other ideas?
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: cron not working

What command did you use?

Try manually removing the expire date from /etc/shadow

Did you restart the cron service?

Other cron jobs (for other users) run?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
TJ Toedebusch
Occasional Advisor

Re: cron not working

I have tried manually removing the expire in /etc/shadow and yes, cron has been restarted.

It appears, no users cron is running.
Vipulinux
Respected Contributor

Re: cron not working

Hi

Check ur entries in cron.allow and cron.deny

Cheers
Vipul
TJ Toedebusch
Occasional Advisor

Re: cron not working

yep, only have a cron.deny and there is only one user in there...
Steven E. Protter
Exalted Contributor

Re: cron not working

Seems to be a serious problem.

If the user account expires cron jobs don't work.

I've always had a policy of accounts with cron being system type accounts like oracle or application owners. I then set those accounts not to expire.

It kind of makes sense from the security standpoint but thats just an opinion.

I think one of the prior posts provided you a solution which by ITRC etttiquette standards means you should award points of 8 or above.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TJ Toedebusch
Occasional Advisor

Re: cron not working

a solution? Nothing anyone has posted has "fixed" my problem. Am I missing something here?
I have no problem awarding points, but I normally don't do that until my problem is fixed, then I base my points on how much each post has helped me come to that resolution.

dirk dierickx
Honored Contributor

Re: cron not working

well, yeah, the solution is to unexpire the user. check with 'chage -l pldh016', you should have no entries with '-1'.