From nobody Wed Sep 22 17:46:28 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 8775817DAE04 for ; Wed, 22 Sep 2021 17:46:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (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 4HF5MT2rqvz4fvc for ; Wed, 22 Sep 2021 17:46:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe2b.google.com with SMTP id k10so3772484vsp.12 for ; Wed, 22 Sep 2021 10:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hVFe9Vs9k93QiGM5r6yNBX+TA0sm5iT7dSOSqyAFBeQ=; b=piG5X2EfSzxFJzRBtwnOHS4P1AAZIQOCkwwbQ2AfBGyPuaxyVV5o3JKLjBQZvkLmPc lJr5pMaST97btBs3AzKWQ9pvQtd2scBXXHtoKdPlU6XPrEzDuLZboAnCBDLCEYGOxik2 BQYZUMhFuCi3O2qUZD0OVXNlim/Ott/gQ1cMcO3tAbN2o24zt4dAYjoHOYJy0P1YQKRf rpETxhLs+O4g0VaTEIgkIALPD+JzkWX6igmWV8nd9ITFdNQjLRoMfcS+faKIP67F03aT wDB+PKRPgDWsXFI4SSwfncIH5HpI5awCnvnrjH32EGuFJN+x90PYpqXPTZnXCIhG+iUO mIbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hVFe9Vs9k93QiGM5r6yNBX+TA0sm5iT7dSOSqyAFBeQ=; b=F39kIY2y6t8WtBIVhbBFWlonnKVMe0g90nJ+mRtLFOxlivdCkkhQtlnmHbh0HN2GCI W6D8Z2D4JVj2BXoZtHJcM1WkCxSeNrNRX9jCJuo30Fb8UjoUcluU82k50vZPvPoHH74u rN5qR51LOZezGH0TMyW1ho/VcigULRHsqLL4yMY64GtHfUp4zqR+4sbVKdfbNmPaCm21 8fvHSZ5qMJEg/oUgnLYJnfMHFAPQyoJAVDAzDs3fZG57FdmWjKjB6RNHPYc647UberK0 LrAuiWUctn6kIHdGLS0dsaq6aihd31B3Vd8SAdWAbrNXxiDMLDnTIkwy7XdoerWQA7he kxmA== X-Gm-Message-State: AOAM532tBKwS3Mfmkr2E0GQ05qtkYB8oXWL+JIIZdgtRfs/p6Bh6VnaK pEZsCNus9bOLfU1wfWQaDfyAwmbPRJn3zZZb3kTQ3g== X-Google-Smtp-Source: ABdhPJyEeeWumhygUVEoqG6D1N2ysuJy5p4b0RTNSQ8AX6pjrcELXr9ZfY9qoN0WCv7JvGUkF7IRq4Hz++o+rqLu9h4= X-Received: by 2002:a67:d589:: with SMTP id m9mr476310vsj.30.1632332799237; Wed, 22 Sep 2021 10:46:39 -0700 (PDT) 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 References: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> <82d7f4d1-5ce9-c7ed-d993-b16b3ddac6e3@FreeBSD.org> In-Reply-To: <82d7f4d1-5ce9-c7ed-d993-b16b3ddac6e3@FreeBSD.org> From: Warner Losh Date: Wed, 22 Sep 2021 11:46:28 -0600 Message-ID: Subject: Re: [HEADSUP] making /bin/sh the default shell for root To: John Baldwin Cc: Baptiste Daroussin , FreeBSD Current , "freebsd-arch@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000a7719305cc99182c" X-Rspamd-Queue-Id: 4HF5MT2rqvz4fvc X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000a7719305cc99182c Content-Type: text/plain; charset="UTF-8" On Wed, Sep 22, 2021 at 9:35 AM 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.) > I think this is also fine. I also think we should remove toor from the default password file for one fewer attack surfaces. I strongly prefer this. Users that want toor can add it to their system and/or provisioning scripts. Warner --000000000000a7719305cc99182c--