From nobody Fri Jul 26 13:43:51 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVprB5jvmz5S88F for ; Fri, 26 Jul 2024 13:43:54 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVprB53Z7z4mRJ; Fri, 26 Jul 2024 13:43:54 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722001434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9NyjMPvHuIvvwYRDZgHvhMZKgPexxINnK3661QH5K38=; b=ngMd+2Qf76NhJPgiACuKHVKqnhm838xO/BkLf4xmWbQiufzppeCHCjOLPAn/hhzso9uwB3 nv5npy0O8z6aCs3RgFVm015ID4VoCNogdBmRR/HE99JzFdc6VUvj1WK6d6pBTpyZBR4/Wh UcuDpR9lYaaH/t0lERJazZbmBWzTWpGVQEeMcp15aK0FR+fDso2VS7H34wDPnOD3craQFV lk+N+ZVr/9vfL3EC7swgwbNDqHXLGnS2kioVg6t/seMSvgJuyJ6//0AwlAdN2SsdxKRGsP kLOu52A0c9hGhDUP4O7Q8x5BfNVRpsCpMdzMDwVYWXfy2FG+EPV3rJVtNV4Q3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722001434; a=rsa-sha256; cv=none; b=xbKl66iOZOQtldjaHQVTq2fYcKq3dEtoDxsau2N5fQlHl78ZBmkFv/3dNvipVk1BUGpDgw N5OkN7caTuHugnppeWrk1igDKn5U+saxhMO0khD8ycLy20oygsHpfRGdx/XPQXnvzG1GxP 7SlhY282qbfDynpMH7u8aYmYuuklehHimj7hCnyExPdXlplywLiXEIftsd8OU8eiqLl2M3 OcdFi+KRnlyupnxgVoJ5QClCIyXfys4sgUfWR+suAj300y2vNjk9pd/nqVfEFdljMWWc5D HLnga1Dx0TqfCNd8X1bYCbMjbpxu81igxwgPQUJ1zIB7rACirvJVEOFjNIclSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722001434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9NyjMPvHuIvvwYRDZgHvhMZKgPexxINnK3661QH5K38=; b=PQZqEk3qKH6PPQgsJbVdwOPen9l7d4AaWBuKJKjdhSC9LPtoILF+AJqX7Ho2PGgJujrzck y4VBzQ0rv/1pRml/7vGL+8UpLX2BGYBnul16FgGJ26FDn1iDD65p7Ti8O8Qqie2UD4D4cH rbffte84miPXdooZ+dJBrzpN/iCARlMd4Yvt2eaO3o0zYSaIq9z7YwK39A5ShDahldVcOV h75bk7NU69kQf4uTWxsPU47c0H16P9v6SjkeMgHFeGhR0GzaCkN5vf9iLDMEwTPmVdPnqx NpPjzlTP5HN22uyTZ8c31siutVMAQ10ER1KBgartgQGWK+kpUoTSbjL8Ezk4qg== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WVprB45ntzcRl; Fri, 26 Jul 2024 13:43:54 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 0A2B81848FD; Fri, 26 Jul 2024 15:43:52 +0200 (CEST) Date: Fri, 26 Jul 2024 15:43:51 +0200 From: Baptiste Daroussin To: Dan Langille Cc: freebsd-questions@freebsd.org Subject: Re: root shell change to /bin/sh - other associated changes? Message-ID: <4s6gemkyu7itvu43fozba4afuytbraxafdwkfldihoieju6htg@7il3klkq6w3q> References: <22a4e9ca-0b4b-4192-9e8c-1041aba82fe9@app.fastmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22a4e9ca-0b4b-4192-9e8c-1041aba82fe9@app.fastmail.com> 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