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

Lou

Member
Aug 13, 2015
7
0
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello :)

Do you notice any additional error messages in /usr/local/cpanel/logs/error_log when this occurs?

Thank you.
 

Lou

Member
Aug 13, 2015
7
0
1
Pittsburgh, Pa, United States
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.
 

Lou

Member
Aug 13, 2015
7
0
1
Pittsburgh, Pa, United States
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.
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*
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.
 

Lou

Member
Aug 13, 2015
7
0
1
Pittsburgh, Pa, United States
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.
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: -
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
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.
 

TerranceR

Well-Known Member
Jul 9, 2015
73
9
83
Houston, TX
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.
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.