From nobody Wed Oct 20 07:34:32 2021
X-Original-To: dev-commits-src-main@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 97FF517FA925;
	Wed, 20 Oct 2021 07:34:33 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4HZ2S91pY3z56b6;
	Wed, 20 Oct 2021 07:34:33 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E283123832;
	Wed, 20 Oct 2021 07:34:32 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19K7YWc3090886;
	Wed, 20 Oct 2021 07:34:32 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19K7YWgT090885;
	Wed, 20 Oct 2021 07:34:32 GMT
	(envelope-from git)
Date: Wed, 20 Oct 2021 07:34:32 GMT
Message-Id: <202110200734.19K7YWgT090885@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-main@FreeBSD.org
From: Baptiste Daroussin <bapt@FreeBSD.org>
Subject: git: d410b585b6f0 - main - sh(1): make it the default shell for the root user
List-Id: Commit messages for the main branch of the src repository <dev-commits-src-main.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main
List-Help: <mailto:dev-commits-src-main+help@freebsd.org>
List-Post: <mailto:dev-commits-src-main@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-main+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-main+unsubscribe@freebsd.org>
Sender: owner-dev-commits-src-main@freebsd.org
X-BeenThere: dev-commits-src-main@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: bapt
X-Git-Repository: src
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: d410b585b6f00a26c2de7724d6576a3ea7d548b7
Auto-Submitted: auto-generated
X-ThisMailContainsUnwantedMimeParts: N

The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=d410b585b6f00a26c2de7724d6576a3ea7d548b7

commit d410b585b6f00a26c2de7724d6576a3ea7d548b7
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-10-19 06:46:12 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-10-20 07:34:05 +0000

    sh(1): make it the default shell for the root user
    
    In the recent history sh(1) has gain the missing features for it to
    become a usable interractive shell:
    - command completion
    - persistent history support
    - improvements on the default bindings in emacs mode
    - improvements in the vi mode (repect $EDITOR)
    - print a newline when exiting via ^D
    - default prompt and improvements on how PS1 can be configured
    - and more.
    
    This changes also simplifies making tiny freebsd images with only sh(1)
    as a shell
---
 UPDATING          | 6 ++++++
 etc/master.passwd | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/UPDATING b/UPDATING
index 6184d2df8a8d..798f188971b8 100644
--- a/UPDATING
+++ b/UPDATING
@@ -27,6 +27,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW:
 	world, or to merely disable the most expensive debugging functionality
 	at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20211020:
+	sh(1) is now the default shell for the root user. to force root to use
+	the csh shell, please run the following command as root:
+
+	$ chsh -s csh
+
 20211004:
 	Ncurses distribution has been split between libtinfow and libncurses
 	with libncurses.so becoming a linker (ld) script to seamlessly link
diff --git a/etc/master.passwd b/etc/master.passwd
index a1be886f1e8d..b61c13fdd9fe 100644
--- a/etc/master.passwd
+++ b/etc/master.passwd
@@ -1,6 +1,6 @@
 # $FreeBSD$
 #
-root::0:0::0:0:Charlie &:/root:/bin/csh
+root::0:0::0:0:Charlie &:/root:/bin/sh
 toor:*:0:0::0:0:Bourne-again Superuser:/root:
 daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
 operator:*:2:5::0:0:System &:/:/usr/sbin/nologin