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 Problems

Discussion in 'General Discussion' started by manChicago, Apr 15, 2006.

  1. manChicago

    manChicago Registered

    Joined:
    Apr 15, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ok First the apology- I KNOW this must have been dealt with elsewhere but I cant find it in google or on the search forums button because the words are just so generic...

    Users cron dosnt seem to work....

    Now, to get more specific - when adding a cron to the system through the Cpanel interface, it says its added, but dosn't seem to do anything. Going back into standard or advanced shows no crons there - just the add new crons part.

    Im sure the root crons (ie into shell, sudo su, crontab -e ) are there and working fine, but I dont think any one elses crons can be added (and :. not running).

    What stupidly simple thing have I done wrong?

    Thanks
    JT
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Check the cron files in /var/spool/cron directory and also check the cron log (/var/log/cron). It will help you to find out the problem.
     
  3. manChicago

    manChicago Registered

    Joined:
    Apr 15, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    In the /var/spool/cron there are only files for root and mailman - not for any of my users.

    the /var/log/cron file shows no problems with any running crons.

    I am of the belief that the web interface is not actually adding the commands to the cron system :S

    The permissions on the spool directory are as follows:

    drwx------ 2 root root 4096 Apr 15 15:41 cron/

    are these sufficient? I have tried setting those to higher privildges but nothing changes when i go through the add cron procedure, (no files added, no crons appearing on the cron screen)

    Thanks
    JT
     
  4. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Did you chack the cpanel error log?. If not try to add a cron job to a particular user through cpanel and check the cpanel error log (tail -f /usr/local/cpanel/logs/error_log). It will help you to find out the problem.
     
  5. manChicago

    manChicago Registered

    Joined:
    Apr 15, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks and now fixed... sort of...

    seteuid: Operation not permitted

    Ahaar! Google now lets me getsomewhere- I tried adding a cron.allow file in /etc/exec but that didnt help, so looking on found me this:

    https://listman.redhat.com/archives/redhat-install-list/2001-April/msg00535.html

    root@aurora [/usr/bin]# ls -la crontab
    -rwxr-xr-x 1 root root 114765 Jun 6 2003 crontab

    root@aurora [/usr/bin]# chmod 4755 crontab
    root@aurora [/usr/bin]# ls -la crontab
    -rwsr-xr-x 1 root root 114765 Jun 6 2003 crontab*

    Now I wonder why that was not right? (but it works now, thanks)

    JT
     
Loading...

Share This Page