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

From: Dan Langille <dan_at_langille.org>
Date: Thu, 25 Jul 2024 22:34:33 UTC
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.

-- 
  Dan Langille
  dvl@FreeBSD.org