From nobody Thu Sep 23 09:29:59 2021 X-Original-To: freebsd-current@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 7C00517D63C0 for ; Thu, 23 Sep 2021 09:30:08 +0000 (UTC) (envelope-from mike@urgle.com) Received: from cheddar.urgle.com (cheddar.urgle.com [IPv6:2001:8b0:df9a:69f3:b67a:f1ff:fe2c:6bed]) (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 4HFVHz6P5Cz3qKt for ; Thu, 23 Sep 2021 09:30:07 +0000 (UTC) (envelope-from mike@urgle.com) Received: from mike by cheddar.urgle.com with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mTL3H-0009xO-Uo for freebsd-current@freebsd.org; Thu, 23 Sep 2021 09:29:59 +0000 Date: Thu, 23 Sep 2021 10:29:59 +0100 From: Mike Bristow To: freebsd-current@freebsd.org Subject: Re: [HEADSUP] making /bin/sh the default shell for root Message-ID: References: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> <2c69aac3-2169-f2ed-ef46-22f40f1d80f6@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c69aac3-2169-f2ed-ef46-22f40f1d80f6@FreeBSD.org> X-Rspamd-Queue-Id: 4HFVHz6P5Cz3qKt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mike@urgle.com has no SPF policy when checking 2001:8b0:df9a:69f3:b67a:f1ff:fe2c:6bed) smtp.mailfrom=mike@urgle.com X-Spamd-Result: default: False [-2.10 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[urgle.com]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:20712, ipnet:2001:8b0::/32, country:GB]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Wed, Sep 22, 2021 at 10:00:49AM -0300, Renato Botelho wrote: > +1 for keeping this behavior on default config -1 for this. Things should be as default-as-possible, so that the behaviour of /bin/sh as root on FreeBSD is unsuprising to someone used to /bin/sh on other systems or users, because they won't be used to the magic config. I have no problem with a section of root's .profile having the approprate magic commented out so that folk who want this can easily have it, of course. Cheers, Mike -- Mike Bristow mike@urgle.com