From nobody Thu Jul 25 22:34:33 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 4WVQgN287Zz5RS1J for ; Thu, 25 Jul 2024 22:34:56 +0000 (UTC) (envelope-from dan@langille.org) Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVQgM41KCz4PZn; Thu, 25 Jul 2024 22:34:55 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm3 header.b=oXP46YNm; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=PBQplTcs; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 103.168.172.148 as permitted sender) smtp.mailfrom=dan@langille.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id D2CB0138016E; Thu, 25 Jul 2024 18:34:53 -0400 (EDT) Received: from wimap24 ([10.202.2.84]) by compute1.internal (MEProxy); Thu, 25 Jul 2024 18:34:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1721946893; x=1722033293; bh=tmaYZNSuqN+HlZhrEKePCgSOTgcvQTqu RB1FZoAWd4Q=; b=oXP46YNmEKrxz1JRSiokZ0YFY+lODUkDHC5NTwjCANNhy7gV PD722r96Fps1dyoWT/RvtbDOJnpfRRwO6ZWLW9j488qo4oiLt+WD4zcyprh8HqAr PFTKc8cu5jgTa0nwHhNFb9jw4Yqdkf1hROpiuNEVuFe6PJtzz2db3m7JSU0inhpr GNs5imAubnO0cRjijrZY2mNffJwUwfTgo7J3vRkiXqu7hy5Df/hcADIGU2mL/U1h HkZ4nshERIRaFXfLjitLpCsarfeXWGPWuCJiPT/gcRhJFAF9X+mvSypzcftcxyAe Nrbj4dnYRjhLcu5r0xZA8WHFI2cOOhttGnalIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1721946893; x=1722033293; bh=tmaYZNSuqN+HlZhrEKePCgSOTgcvQTquRB1 FZoAWd4Q=; b=PBQplTcsN6sqJg7YKPXSQGAXBGbC0PDr8LMxzRPZIQhzWGfOBBu ZwaO9KCfmowf4htdewkm9O+PecpAH9EZR/zWOJCSNhNofTBb2eywbr0Nr4yTLCez 9PgFV2hp9m7qd+SCDm0W6gQvQZU8/8fKaiOJ8y1gD+mm5qdKCQ1/pkB/ejeuhAqb terhQcLqnVyW6SVKg4XPN+lBjN66fM1UeIP1Lxqkb1pHdNdhQL3TyUGg4tgdxKkE 3ikjgDTWLPT9qLC6hoIRX3ki1KQtbQNBwoAf9cFSBrsYwbNZgjfB9aSCiQfiOEFu qs1LrepkieJQXObrZd2jAcfqXX9VFii+XRg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieeggddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfffhffvvefutgesthdtredtreertdenucfhrhhomhepfdffrghnucfn rghnghhilhhlvgdfuceouggrnheslhgrnhhgihhllhgvrdhorhhgqeenucggtffrrghtth gvrhhnpeekveejffetudeuuddvudehffekieekieetvdetfefftdffueejheevheehfefg udenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhlvgdrohhrghdp nhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9FE6525E0064; Thu, 25 Jul 2024 18:34:53 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 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 Message-Id: <22a4e9ca-0b4b-4192-9e8c-1041aba82fe9@app.fastmail.com> Date: Thu, 25 Jul 2024 18:34:33 -0400 From: "Dan Langille" To: "Baptiste Daroussin" Cc: freebsd-questions@freebsd.org Subject: root shell change to /bin/sh - other associated changes? Content-Type: text/plain X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm3,messagingengine.com:s=fm3]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.148:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; FREEFALL_USER(0.00)[dan]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+] X-Rspamd-Queue-Id: 4WVQgM41KCz4PZn 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