Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    Default Cron Problems

    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. #2
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    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.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    Default

    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. #4
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    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.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    Default 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/.../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

Similar Threads & Tags
Similar threads

  1. Cron Problems
    By bpotter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2005, 11:22 AM
  2. Cron Problems
    By nitro9net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-11-2004, 09:10 PM
  3. Problems with CRON... not sure what this means
    By Diane in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-26-2004, 11:22 PM
  4. Cron Problems... please help
    By EcpHosting in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-25-2003, 11:32 PM
  5. Problems with cron jobs
    By Omar in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-03-2002, 02:13 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube