CRON job in users account gets permission denied after migration

nyjimbo

Well-Known Member
Jan 25, 2003
1,136
1
168
New York
I just migrated 200+ accounts from an old cpanel server to a new one. After all the usual tweaks I am seeing some people complain about cron jobs failing with permission denied errors.

One user runs a job " /usr/bin/curl -s https://www.xxxxxxx.org/membership/cron " hourly for years, but on the new server gets emails saying

"/usr/local/cpanel/bin/jailshell: /usr/bin/curl : Permission denied"

I'm guessing something needs to be tweaked on the new server, but I am not sure. Any ideas ?

This is for Cpanel 84.0.4 on Centos 7.7

Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
What are the permissions of /usr/bin/curl ?
If it is 750 change it to 755.
I checked in couple of our servers and seems to be 755.
This has been discussed here also:
 
  • Like
Reactions: nyjimbo

nyjimbo

Well-Known Member
Jan 25, 2003
1,136
1
168
New York
For some reason it was 700

Almost everything else was 755 or at least 750. I changed it and will ask the users if it works now. Thankis.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Do let us know if it works and if something like this occurs again. I've checked my test servers running v84 and have not seen the same behavior, so I haven't been able to replicate this.
 
Thread starter Similar threads Forum Replies Date
D Transfers 1