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.

Permission on “/usr/bin/crontab” are wrong (4755). Please set to 4755.

Discussion in 'General Discussion' started by Lou, Aug 13, 2015.

  1. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    As the title states I am getting the error:
    Permission on “/usr/bin/crontab” are wrong (4755). Please set to 4755.

    This only shows us when using the x3 theme on my cpanel. When I use the paper lantern I get the following error when I try to set an email or create a cronjob:

    Insecure dependency in require while running setuid.
    BEGIN failed--compilation aborted.

    This issue is very weird since the 4755 is obviously already set per the first error message.

    Any help would be awesome.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    The only errors in that log are similar to this:

    warn [Cron::set_email] Encountered error in Cron::set_email: Insecure dependency in require while running setuid.
    BEGIN failed--compilation aborted.

    warn [Cron::add_line] Encountered error in Cron::add_line: Insecure dependency in require while running setuid.
    BEGIN failed--compilation aborted.

    info [cpanel] Permissions check for /usr/bin/crontab failed. Not executable. Unable to use user cronjobs via cPanel.
    Insecure dependency in require while running setuid.
    BEGIN failed--comilation aborted.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's possible this is related to an internal case opened for cron jobs on certain versions of cPanel and certain operating systems. Please post the output from:

    Code:
    cat /usr/local/cpanel/version
    cat /etc/redhat-release
    Thank you.
     
  5. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    cat /usr/local/cpanel/version
    11.50.0.29

    cat /etc/redhat-release
    CentOS Linux release 7.1.1503 (Core)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Internal case CPANEL-376 is open to address an issue where crontab on CentOS 7 will not work if a user renamed /usr/bin/crontab.relink.# (ex: /usr/bin/crontab.relink.1437150286) to something such as /usr/bin/crontab.relink.disabled. Could you post the output from the following command to see if that's the case on this system:

    Code:
    ls -al /usr/bin|grep crontab
    Thank you.
     
  7. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    ls -al /usr/bin|grep crontab
    lrwxrwxrwx. 1 root root 39 Aug 2 23:16 crontab -> /usr/local/cpanel/bin/jail_safe_crontab*
    -rwsr-xrx. 1 root root 57536 Jul 30 2014 crontab.relink.1438571809*
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To clarify, could you check the permissions of the /usr/local/cpanel/bin/jail_safe_crontab file? EX:

    Code:
    stat /usr/local/cpanel/bin/jail_safe_crontab
    Thank you.
     
  9. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    Code:
    stat /usr/local/cpanel/bin/jail_safe_crontab
      File: ‘/usr/local/cpanel/bin/jail_safe_crontab’
      Size: 3973629         Blocks: 7768       IO Block: 4096   regular file
    Device: fd00h/64768d    Inode: 70923892    Links: 1
    Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Context: unconfined_u:object_r:usr_t:s0
    Access: 2015-08-13 05:03:47.090373863 -0400
    Modify: 2015-08-02 22:48:17.718002781 -0400
    Change: 2015-08-13 05:03:41.856373260 -0400
     Birth: -
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  11. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    Support Request Id 7026953
     
  12. Lou

    Lou Member

    Joined:
    Aug 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, Pa, United States
    cPanel Access Level:
    Root Administrator
    and issue was resolved. your ticket system is a little cumbersome, but the guys working the tickets are very knowledgeable and quick to the fix.
     
  13. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    72
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    Lou, glad I was able to help, the issue just so everyone is aware was that "/
    usr/local/cpanel/bin/jail_safe_crontab" was set to 4755 when it should be set to 755 it does not need nor allow the setuid bit.
     
Loading...

Share This Page