Re: root shell change to /bin/sh - other associated changes?

From: Baptiste Daroussin <bapt_at_freebsd.org>
Date: Fri, 26 Jul 2024 13:43:51 UTC
On Thu 25 Jul 18:34, Dan Langille wrote:
> Baptitse,
> 
> I'm trying to understand something which happened at work.  The problem is fixed now. I'm trying to understand the possible cause and prepare for the eventual upgrade to 14.1
> 
> We unintentionally changed root's shell to /bin/sh on a 13.3 host. It broke one of our internal rc.d scripts. Changing the shell back fixed the script.
> 
> too much detail: the rc.d script runs a bash script located in /usr/local/sbin/ - that bash script in turn launches N background ruby processes. The main part of the error:  Could not find a JavaScript runtime
> 
> It makes me think the PATH changed to no longer include /usr/local/bin (for example).
> 
> Which makes me think: this is shell related.
> 
> Your commit was https://cgit.freebsd.org/src/commit/etc/master.passwd?h=releng/14.0&id=d410b585b6f00a26c2de7724d6576a3ea7d548b7
> 
> I intended to ask about other changes made in conjunction with the above, when I realised: it might be as simple as our host having a custom PATH applied to /bin/csh .... I can't check now, I'm at home.
> 
> Thanks.
> 

Nothing regarding how we set the environment to my knowledge, I would have a look at the default profile, cshrc,
shrc.

Best regards,
Bapt