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.

Cpanel cron user fail

Discussion in 'General Discussion' started by Grzeslaw, Jul 24, 2006.

  1. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    Hi

    From few day's I have the very peculiar problem:
    When I set up the cron job, for user in his cpanel, I got the following error in cron log:

    Code:
    (...)  (halinex) AUTH (crontab command not allowed)
    
    And nothing has been seen in the user CronTab window, any messages.
    Every think looks OK, but it isn't. There is no initiation in the crontab window.
    What can it be :rolleyes:
     
  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
    Check to see if you have a file called /etc/cron.deny
     
  3. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    All files: hosts.allow and hosts.deny are blank.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not hosts.deny - see if you have a cron.deny or cron.allow file.
     
  5. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    No I dont. But I've much more servers witch the same configuration, and on those machines, cron works fine (and there is no cron.allow or cron.deny files).
    So I suppose that could be sth elese.

    # ADD:

    What is interesting:
    The message repat 3 times, when I tried to add the job:

    Jul 24 14:28:05 s76 /usr/bin/crontab[13251]: (halinex) AUTH (crontab command not allowed)
    Jul 24 14:28:08 s76 /usr/bin/crontab[13318]: (halinex) AUTH (crontab command not allowed)
    Jul 24 14:28:09 s76 /usr/bin/crontab[13324]: (halinex) AUTH (crontab command not allowed)


    And the system (shell) cron works fine;
     
    #5 Grzeslaw, Jul 24, 2006
    Last edited: Jul 24, 2006
  6. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    Hi

    At last the problem has been solved. There was 2 thinks, that block accesing user to cron implementing :

    1) Wrong registry in cron and .acces files
    2) No suid on crontab script.


    Greetings
     
  7. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    I have another problem, with the cron app, and the solve was also SUID-bit on the crontab executable file.
    Is it any byway , not-to use the suid bits.? AFAIK It's a big security hole [;
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks like crontab should have the suid bit set anyway:

    Code:
    -rwsr-xr-x    1 root     root        64662 Apr 19 22:21 /usr/bin/crontab*
     
  9. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    okey, thnx.
     
Loading...

Share This Page