CRON job permission denied error

Welcome to our community

Be apart of something great, join today!

derpnet

Newbie
Messages
3
Reaction score
0
Points
1
Hello,

I just migrated my website to a new hosting provider. After the migration, I am getting cron jobs failing with permission denied errors. The cronjob emails include this error:

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

Any ideas on how to fix it?
 
  • Advertisement
  • JustChatMe007

    Newbie
    Messages
    22
    Reaction score
    4
    Points
    3
    You can try this:
    First check the permission using the following command.
    Code:
    ls -l /usr/bin/wget

    Output should be: -rwxr-xr-x. 1 root root
    If not you can use the command below to change the permission
    Code:
    chmod 755 /usr/bin/wget

    Hopefully it helps!
     
  • Advertisement
  • derpnet

    Newbie
    Messages
    3
    Reaction score
    0
    Points
    1
    You can try this:
    First check the permission using the following command.
    Code:
    ls -l /usr/bin/wget

    Output should be: -rwxr-xr-x. 1 root root
    If not you can use the command below to change the permission
    Code:
    chmod 755 /usr/bin/wget

    Hopefully it helps!

    It was 700. I changed it and it works now. Thanks.
     

    Advertisement

    Top