Changing default shell for Cron

Rich Felker dalias at libc.org
Sat May 3 03:07:44 UTC 2014


On Mon, Apr 28, 2014 at 05:23:07PM +0000, Rob Anderson wrote:
> Hello,
> 
> I have compiled Busybox for Android with a 
> fully working cron. However, when I try to run crond/crontab, I get the 
> following output in the log;
> 
> "crond: can't execute '/bin/sh' for user root"
> 
> Unfortunately,
>  I have tried all the usual suggestions on the internet e.g. adding PATH
>  and SHELL to the cron but to no avail (I can get cron working perfectly
>  by symlinking /system/bin/sh to /bin/sh but I do not like this method). 
> Is it possible to hardcode a different default shell path into the 
> Busybox source for cron to execute e.g. the default /system/bin/sh for 
> Android? If so, could you please advise whereabouts in the source this 
> change needs to be made?

This is really just android being gratuitously broken; it would be
really nice to pressure them to fix this instead of adapting
everything to their brokenness...

Rich


More information about the busybox mailing list