The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Nightmare: root: command not found

Discussion in 'General Discussion' started by n1zyy, Nov 12, 2004.

  1. n1zyy

    n1zyy Member

    Joined:
    Mar 16, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    It turns out we were redirected root's mail on our box to another address (oops!). We just redirected it to actually come to us as the admins. (This was a slip-up on our part, not a security breach.)

    I now get mail every hour saying:

    /bin/bash: root: command not found


    The subject is Cron <root@1n8-35> root run-parts /etc/cron.hourly

    I figured there was some junk job in /etc/cron.hourly. There isn't a single file there. (Including hidden dot files.)

    What on Earth is going on? How can I stop it? I'm getting this crap every hour.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Sounds more like a problem with:

    /etc/crontab

    What are the contents of that file on your server? All it should have in it are:

    Code:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/
    
    # run-parts
    01 * * * * root run-parts /etc/cron.hourly
    02 4 * * * root run-parts /etc/cron.daily
    22 4 * * 0 root run-parts /etc/cron.weekly
    42 4 1 * * root run-parts /etc/cron.monthly
    
     
Loading...

Share This Page