From nobody Wed Sep 22 17:47:50 2021 X-Original-To: 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 5614717DB7CB; Wed, 22 Sep 2021 17:47:56 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HF5Nq3ZgZz4fw3; Wed, 22 Sep 2021 17:47:55 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x52f.google.com with SMTP id h17so13075334edj.6; Wed, 22 Sep 2021 10:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=8mBK2FQNSLLfvSC3ksODtFdE81pweAsdiue9j031yp0=; b=MFh4aXB9HWgmUi+ha7lrWuk66Ao5j7T1D8Av0O9eBR0TkApyzgBS2znVxI1ZnUBODs a7zZH5Pq8POlbyiBhhZCRzJbMnUZmddFdhx4xd7j5YbjC7SBbWTV9fG2X4CmY6usJUaz u0htdn9WIrPYfg+4G/VxshAxzddM8CokQq/pOszeRmlneznbo1lIJkVrQeV1y9bryjuO 4T7TvvXJ76Ee8DYJ9lC4HcWUeNcMxMbAPT8elFzjNczkixKEDE+AD66hASPt9zNDGeIC trc/ooKVn4dVGsdX8OjzWFVlqLJW4ibk/ZyZK768DM00duygi8tnKRKPDTbiVjc5i+Q2 0M4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=8mBK2FQNSLLfvSC3ksODtFdE81pweAsdiue9j031yp0=; b=YwS7wDe1pKMYihC892TbMTlRpARpiT7VBMAkXsevR4sOmkbn7d2jkCaiFCMSd2WuIb tyb+K70MJVZfBEsjGsT4OvtW3+xfU9YQ/rqQ0XvORAG5q/f6kWlZevr9ImmH3ZLc0a5n Dr4sqiPOLuqbtJDpmKR0JkkniYjlY/oPyergLQkDsFT/4NM5i2pnUTny3FtRiaEuHUcI zmM8YV63TYaDgIi5ZCRVMQuN+4ECwr3dgebC8+pRXmKiiqZD0lUY/F6E8ouh0zhIVYBk 6kD9tFUyp874DBTHZiuT6opeyxvrh2olF7iZf44EgBUjuYXABRwq2HSdY58fzoMXSqXI KygQ== X-Gm-Message-State: AOAM5314pnjfzcGh/DT+VYdqM3EXrhyT2BzZiODrzyPgTsLe86RBI8u2 rHva2Ifcnaax9Q8gUqjNPMvQ7l0tYtE= X-Google-Smtp-Source: ABdhPJz+jIepKCCsTWOYYCnY6L+V52pbpJtz0lDHgCSr9QOEiNP872Vmm/wwWtg/9r3OvQF/TtqCPA== X-Received: by 2002:a17:906:6448:: with SMTP id l8mr433708ejn.301.1632332874515; Wed, 22 Sep 2021 10:47:54 -0700 (PDT) Received: from ernst.home (p5b023517.dip0.t-ipconnect.de. [91.2.53.23]) by smtp.gmail.com with ESMTPSA id q10sm1335628ejt.121.2021.09.22.10.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 10:47:53 -0700 (PDT) Date: Wed, 22 Sep 2021 19:47:50 +0200 From: Gary Jennejohn To: "Rodney W. Grimes" Cc: Shawn Webb , John Baldwin , Baptiste Daroussin , current@FreeBSD.org, arch@FreeBSD.org Subject: Re: [HEADSUP] making /bin/sh the default shell for root Message-ID: <20210922194750.55af63d5@ernst.home> In-Reply-To: <202109221552.18MFqsTS050409@gndrsh.dnsmgr.net> References: <20210922154222.6bvnqk4kjjxewy6n@mutt-hbsd> <202109221552.18MFqsTS050409@gndrsh.dnsmgr.net> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HF5Nq3ZgZz4fw3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 22 Sep 2021 08:52:53 -0700 (PDT) "Rodney W. Grimes" wrote: > > On Wed, Sep 22, 2021 at 08:34:58AM -0700, John Baldwin wrote: > > > On 9/22/21 1:36 AM, Baptiste Daroussin wrote: > > > > Hello, > > > > > > > > TL;DR: this is not a proposal to deorbit csh from base!!! > > > > > > > > For years now, csh is the default root shell for FreeBSD, csh can be confusing > > > > as a default shell for many as all other unix like settled on a bourne shell > > > > compatible interactive shell: zsh, bash, or variant of ksh. > > > > > > > > Recently our sh(1) has receive update to make it more user friendly in > > > > interactive mode: > > > > * command completion (thanks pstef@) > > > > * improvement in the emacs mode, to make it behave by default like other shells > > > > * improvement in the vi mode (in particular the vi edit to respect $EDITOR) > > > > * support for history as described by POSIX. > > > > > > > > This makes it a usable shell by default, which is why I would like to propose to > > > > make it the default shell for root starting FreeBSD 14.0-RELEASE (not MFCed) > > > > > > > > If no strong arguments has been raised until October 15th, I will make this > > > > proposal happen. > > > > > > > > Again just in case: THIS IS NOT A PROPOSAL TO REMOVE CSH FROM BASE! > > > > > > I think this is fine. I would also be fine with either removing 'toor' from the > > > default password file or just leaving it as-is for POLA. (I would probably > > > prefer removing it outright.) > > > > HardenedBSD recently removed toor. No one has complained (yet?). A > > small Twitter poll[0] showed that 85% of people who responded do not > > use toor. > > A truely disastisified customer does not complain, they simply > go some place else for there products. Be carefull in what you > believe silence to be saying. > I use toor on every FreeBSD machine as the root login using bash. I never log in as root. But removing it wouldn't be a deal breaker for me. I'd just put it back into /etc/passwd. > > > > [0]: https://twitter.com/HardenedBSD/status/1415781911063056389 > > > > Thanks, > > > > -- > > Shawn Webb > > Cofounder / Security Engineer > > HardenedBSD > > > > https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc > > -- > Rod Grimes rgrimes@freebsd.org > -- Gary Jennejohn