SOLVED One user's cron jobs not running

IanNQuality

Member
Sep 13, 2017
9
0
1
Nottingham
cPanel Access Level
Root Administrator
Hi there,

Yesterday I changed the cron notification email for one of my users. Since then their cron jobs are not running, they were running fine before that. All other users' jobs are still running fine on the same server.

I have spent some time looking into this and the only thing I have found (and I don't know if this is a red herring) is that the file /var/spool/cron/user has the line SHELL="/bin/false" before each of the jobs whereas the other users have the line SHELL="/usr/local/cpanel/bin/jailshell" before theirs.

Has anyone any ideas what could be wrong?

Thanks, Ian
 

IanNQuality

Member
Sep 13, 2017
9
0
1
Nottingham
cPanel Access Level
Root Administrator
Hello,

Yes, the "SHELL=" line needs to match the following if the account is assigned no shell or jailed shell access:

Code:
SHELL="/usr/local/cpanel/bin/jailshell"
This is discussed on the following thread:

some cPanel update added jailshell to my crontabs

Thank you.
Thanks for that. It has partially answered my question. If I change that line then the cron job does start to fire. However, if I make any change to the cron jobs they are all reset to the "bin/false" entry. What could be causing that to happen?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
I update it from within cPanel. It doesn't matter what I update, the notification email or the time of the cron, it puts those lines back to "bin/false"
I'm unable to reproduce this issue on a test system. Can you let us know which version of cPanel is installed? EX:

Code:
cat /usr/local/cpanel/version
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello Ian,

Can you check to verify if the account in-question is suspended? The behavior you reported is normal if the account is suspended, as cron jobs are not supposed to work.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
I can confirm the account is definitely not suspended. I have previously suspended it for short periods of time but the site is up and working.
Does the issue persist if you suspend the account, and then unsuspend it again? It's possible the account was not properly unsuspended.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello Ian,

I'm happy to see the issue was solved. Thank you for updating us with the outcome.