Skip to main content

Cron job not running getting error "Could not exec shell '/bin/bash'"

Comments

5 comments

  • cPanelPeter cPanel Staff
    Hello, Is the account set up as a Jail Shell user or Disabled shell user? If so, please try changing it to a normal shell and see if that solves the issue.
    0
  • careh
    I am also getting the Could not exec shell '/bin/bash on a cron job that was not changed. I am not familiar with 'jail Shell or Disabled shell user' How/where would I check for that? One thing that did happen recently is I had messed up my login password and my account was locked out. Could that have something to do with the cron failure?
    0
  • cPanelMichael
    [quote="careh, post: 1737111">I am also getting the Could not exec shell '/bin/bash on a cron job that was not changed. I am not familiar with 'jail Shell or Disabled shell user' How/where would I check for that? One thing that did happen recently is I had messed up my login password and my account was locked out. Could that have something to do with the cron failure?
    Your access level is listed as "Website Owner". Please report this issue to your web hosting provider, as you will not be able to view or modify the type of shell access granted to your account. Thank you.
    0
  • careh
    [quote="cPanelMichael, post: 1737112">Your access level is listed as "Website Owner". Please report this issue to your web hosting provider, as you will not be able to view or modify the type of shell access granted to your account. Thank you.
    The web hosting provider made some change - and now I can again run cron scripts. My guess is when my account was locked out due to me messing up my password too many times it also disabled my ability to run cron scripts and when they re-activated my account there is a separate step needed to reactivate my cron script access. Thanks for the help.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. It's possible your hosting provider updated your shell access level or modified what actions that jailed shell users can make. Thank you.
    0

Please sign in to leave a comment.