Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    158
    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:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Check to see if you have a file called /etc/cron.deny
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Poland
    All files: hosts.allow and hosts.deny are blank.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Not hosts.deny - see if you have a cron.deny or cron.allow file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    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;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    158
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    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 [;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    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*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Poland
    okey, thnx.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice