A few days ago via Nodeworx, I deleted a particular Siteworx account that I handled. That site had a few associated Cron jobs that I would have expected to be removed along with the account.
Interestingly, I’m still receiving emails from the Cron job indicating:
/bin/sh: line 1: /home/blah/blah/blah/blah.pl: No such file or directory
… daily from the 3 now defunct Cron jobs.
Is there a way (or a need) to surgically remove these scripts from trying to execute?
Alrighty … that worked to solve that part of the equasion, however, I’m now getting a few more of these than I’d like daily:
ORPHAN (no passwd entry)
In the logwatch.
I’ve read that this is usually due to something trying to run a cron job against a non-existent user account. I’ve checked what I can and don’t see any rogue cron jobs left. Any thoughts on where to hunt?
Seems like I’ve still got a bunch of these showing up daily:
--------------------- Cron Begin ------------------------
**Unmatched Entries**
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
ORPHAN (no passwd entry)
---------------------- Cron End -------------------------
The only Cron job that I know is running is an ipcheck script that’s bringing up any of the eth0:x interfaces if they happen to go down (… right…a bandaid, I know).
Is there another place to hunt for rogue Crons besides /var/spool/cron?
You know, it’s not as if I haven’t checked those locations before, but somehow someone telling you to go look there again is a nice two-by-four to the head.
I did find a few jobs in cron.daily that were left over from an old firewall script that has since been removed – yet the crons remained. I’ll see if removing them keeps these entries out of the logwatch.
I’m sure one of the rogue crons explains why my new firewall rules kept getting flushed every morning as well <sigh>.