Re: [HEADSUP] making /bin/sh the default shell for root

From: Julian H. Stacey <jhs_at_berklix.com>
Date: Thu, 23 Sep 2021 13:16:09 UTC
Gary Jennejohn wrote:
> On Wed, 22 Sep 2021 08:52:53 -0700 (PDT)
> "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> 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.

Toor has been an occasional lifeline during re-build dissters.
Need root & toor to have different executables,
& home directories & passwords, & no environment vars on one etc.

> But removing it wouldn't be a deal breaker for me.  I'd just put it
> back into /etc/passwd.

Ditto.  `One Best Tool' debates can consume time.

Best keep time for other things, ( eg I've an interesting regression to chase:
12.2-RELEASE OK, but 12.2-STABLE & 13.0-RELEASE Generic kernels panic on
boot & wont produce a /var/crash/vmcore.2 & won't drop into DDB ).

Cheers,
-- 
Julian Stacey  http://berklix.com/jhs/  http://stolenvotes.uk