Skip to main content

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

Comments

12 comments

  • cPanelMichael
    Hello :) Do you notice any additional error messages in /usr/local/cpanel/logs/error_log when this occurs? Thank you.
    0
  • Lou
    Hello :) Do you notice any additional error messages in /usr/local/cpanel/logs/error_log when this occurs? Thank you.

    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.
    0
  • cPanelMichael
    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:
    cat /usr/local/cpanel/version cat /etc/redhat-release
    Thank you.
    0
  • Lou
    cat /usr/local/cpanel/version 11.50.0.29 cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core)
    0
  • cPanelMichael
    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:
    ls -al /usr/bin|grep crontab
    Thank you.
    0
  • Lou
    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:
    ls -al /usr/bin|grep crontab
    Thank you.

    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*
    0
  • cPanelMichael
    To clarify, could you check the permissions of the /usr/local/cpanel/bin/jail_safe_crontab file? EX:
    stat /usr/local/cpanel/bin/jail_safe_crontab
    Thank you.
    0
  • Lou
    To clarify, could you check the permissions of the /usr/local/cpanel/bin/jail_safe_crontab file? EX:
    stat /usr/local/cpanel/bin/jail_safe_crontab
    Thank you.


    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: -
    0
  • cPanelMichael
    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.
    0
  • Lou
    Support Request Id 7026953
    0
  • Lou
    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.
    0
  • TerranceR
    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.

    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.
    0

Please sign in to leave a comment.