Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2021 14:42:48 +0200
From:      Guido Falsi via freebsd-current <freebsd-current@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: [HEADSUP] making /bin/sh the default shell for root
Message-ID:  <b6475d11-97c2-fae6-0086-2e0de0404180@madpilot.net>
In-Reply-To: <20211012142126.66036897@ernst.home>
References:  <CAD2Ti28tkY=Fyz-OrTjxQVwrNaDxitO_bn29TxoM=9WoP1ON5Q@mail.gmail.com> <6B2E21D5-0DF1-4BCC-A27C-DFFBB201FB52@gmail.com> <CAD2Ti29q8J6rLGPjLthxgfUiYR48kiQ9SiAf%2BSc_zVcsT5Ks6g@mail.gmail.com> <20211012142126.66036897@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/10/21 14:21, Gary Jennejohn wrote:
> On Tue, 12 Oct 2021 06:59:00 -0400
> grarpamp <grarpamp@gmail.com> wrote:
> 
>>> No. The system shell is supposed to make the system usable
>>> by the users. Actually, the real problem is that the easiest way
>>> to shoot one's own foot is by changing the language (say, the
>>> shell) spoken by default by FreeBSD.
>>
>> Well, the FreeBSD system speaks sh for its own use, this is clearly
>> documented as the shell called by init(8), and later by rc(8),
>> it should probably be the root:0 entry at least for consistancy.
>> No other shell is called by the FreeBSD system there.
>> Whatever the users want for their own shells is really up
>> to them to decide after that.
>>
>> "Default" is bit of low context word, as there is no falling
>> back to some shell occuring, no filling in for some missing
>> option, etc. Maybe use word "shipped" or "root" instead.
>>
>> Everyone said they already do, and will continue to,
>> exec whatever shell they like, whether after login,
>> or by changing the entry. So in addition to the user
>> being ultimately responsible for their own box and usage,
>> this well announced entry for UPDATING cannot therein
>> really be responsible for any user self-shooting.
>>
>>> This is non-sense.
>>
>> Well, FreeBSD does not add every shell in base,
>> does not add every app to base, etc.
>> Some reasons for those limits should be obvious.
>> This update gives further distilling clarity by
>> limiting the number of shipped uid 0 entries to 1,
>> with that 1 being sh.
>>
>>> Every unix user should know that it's
>>> possible to changing the used shell by using
>>> chsh and this includes root.
>>
>> Then for every user, this update is not a problem.
>>
> 
> I've been using UNIX both privately and professionally since 1984
> and I must admit that I never heard of chsh before seeing this
> e-mail.  I simply use vipw; it's the logical way to do this sort
> of thing IMHO.  But I suppose that this is the way to go for users
> who don't have root access (which I always have).

AFAIK only root can use vipw, while chsh is usable by all system users.

Guess you've been root since 1984 :)

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6475d11-97c2-fae6-0086-2e0de0404180>