From owner-freebsd-arch@freebsd.org Sat Jan 26 16:47:20 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F89B14C8B4E for ; Sat, 26 Jan 2019 16:47:20 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8D4608A86F for ; Sat, 26 Jan 2019 16:47:19 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: by mailman.ysv.freebsd.org (Postfix) id 5021714C8B4D; Sat, 26 Jan 2019 16:47:19 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 142A114C8B4C for ; Sat, 26 Jan 2019 16:47:19 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 335AD8A86C; Sat, 26 Jan 2019 16:47:18 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x0QGlDsG094337; Sat, 26 Jan 2019 08:47:13 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id x0QGlDeG094336; Sat, 26 Jan 2019 08:47:13 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201901261647.x0QGlDeG094336@pdx.rh.CN85.dnsmgr.net> Subject: Re: Importing mksh in base In-Reply-To: <20190126123513.GA27717@server.rulingia.com> To: Peter Jeremy Date: Sat, 26 Jan 2019 08:47:13 -0800 (PST) CC: Baptiste Daroussin , arch@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 335AD8A86C X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.965,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 16:47:20 -0000 -- Start of PGP signed section. > On 2019-Jan-25 17:57:51 +0100, Baptiste Daroussin wrote: > >I would like to import mksh in base, https://www.mirbsd.org/mksh.htm > > What are mksh's advantages/disadvantages compared with the existing /bin/sh. > Personally, I don't see the point of a 3rd shell in the base system. > > >And make it the default root shell (not necessary in one step) > > Whilst I prefer /bin/sh to /bin/csh as root's shell, changing the > default would be a significant POLA violation. My suggestion (as has > been made elsewhere) is to make the choice of root shell an install > option. As voiced elsewhere I'll expand on the "install option" situation. In my view I agree with the other poster on that issue that we should try to keep install options to a minimum as it creates an installer that is too interactive. However what we can do is to educate the user that there are many things they may wish to change about the default install to suit there needs better. IMHO it is a mistake to try and tweak our default install to suit any of these varied desires, you can not ever get even close to satisfying a small percentage, so keep it VERY minimal. If you want root's shell as an install option, there is that last screen "Drop to a shell in the installed system?". This is a very feature reach installer option system. Want root to use /bin/sh: type chsh -s /bin/sh root Want sshd started on boot: type echo 'sshd_enable="YES"' >>/etc/rc.conf Do not want that toor account in the password file: type vipw and remove it I believe if your network attached at this point you can even do a "pkg bootstrap && pkg install FOO". Much of what we have as installer options could be handled this way and a huge list of things provided to the user in a simple text document "How to tweak your BSD so it fits your likes using the installer shell". We are unix geeks, lets use our toolbox and not some god forbiden dialog menu screen system (not that the installer is not a wonderful thing for new users.) Personally I have a tarball overlay that I scp and untar onto the system at this stage, mostly it is new files, but files I need to alter, like /root/.cshrc is handled by /tmp/overlay.diff which is simple a patch rooted at / that does these tweaks (One reason I get upset about people tweaking on the default config scripts that we ship, as I have to revise this patch and have a different version for each release that has different files, its become a PITA. No need for /bin/mksh, no need for /root/.shrc, no need for any aliases in any dot.foo files. Clean it up and let these areas be the site customizations they are intended to be and stop trying to make the defaults work for everyone. My paint is blue, I buy it by the rail car, and I dip paint my bike sheds :-) -- Rod Grimes rgrimes@freebsd.org