From nobody Tue Oct 12 10:59:00 2021 X-Original-To: freebsd-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 0489E17E5309 for ; Tue, 12 Oct 2021 10:59:08 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) (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 4HTCMv2Ymbz4nSZ for ; Tue, 12 Oct 2021 10:59:07 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-vk1-xa34.google.com with SMTP id m199so9189707vka.6 for ; Tue, 12 Oct 2021 03:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ak2D1sffqzoba0ljEIDlZSDRgRdlDbZC13TOwCnfis8=; b=aTQ5z/wrZivMKnrhThmqCkZBiEfo213yfm9mZv3mabewpw+GfV49gV92+seZmhFL8y MsGrKQq9+laNbXqPLWR9fGw92QdGh7w/A0MZ7PSX0BhLk8mm4TBQREIkbNztnh2JrvgV OZONOoUUa0jCUJGRXJe90gVhIYoGNEG02AT7ex/dxvZn9zzaNjEaZqztlJBKCdDvxvii AbZwTrskMqXjrvWVvcurjXte8RvSqCvU+zg6T5VHeZ+ADM+2695vk1gsY/BR4hrafvYq WuvSzjySfbgWQW5y0Cdxl7wuWGj+aHGGP5pWkM3WO24nXjt1WwwmdobZy9x/MeiS43pQ jyLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ak2D1sffqzoba0ljEIDlZSDRgRdlDbZC13TOwCnfis8=; b=Qm4X7izbqhB5uRNKTwTx9SLDzyhrvZS++hZVmkSxj5lDQj7NYqyNK+MHCe001NPfkg OsuKcKQ/ZBIo3PjUAYuQZveJjfXlWc6ORl2NWILYLz4+vNjnDMP0eCidyOs7TVvnmxdJ WflV4qD4Re3nEsU5ryaRiZmyPkrDyUn7slS1yKAykq9EJJi+3omkKowaIvxhw8v9S2gF oiqqtcZ7kRnuNsW6gJOZXcbnVaS6YZWfjgAfgY1fbNXd41QHuDSWdZHjD6xyt7SDf0WR mP1euaKMG3MVf/zQkZIN96wCiFGZhvA0/LIuH2/GI160rS57IjKPpkyFUbQonMhvWZjb DfVw== X-Gm-Message-State: AOAM5315qaVmVOCGDb/HPWkpiKjTqiBbXY6kk/aB+xyvDA/i85ag4F2s lPFgVTDOdPNfB+CG/vseYxracUkkzcx4qIViCYkJHmKN3ruDkvo3 X-Google-Smtp-Source: ABdhPJxaSiO11qndzMsg5hKjSA/I32c2KAno5Je6VaMC3hlFEEm91eSCjQKqpe+/TLLKU4qhHjeC3hm5KvI8nfxXeAo= X-Received: by 2002:a1f:9f10:: with SMTP id i16mr25373538vke.0.1634036340947; Tue, 12 Oct 2021 03:59:00 -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 Received: by 2002:a59:938c:0:b0:236:ed6d:8851 with HTTP; Tue, 12 Oct 2021 03:59:00 -0700 (PDT) In-Reply-To: <6B2E21D5-0DF1-4BCC-A27C-DFFBB201FB52@gmail.com> References: <6B2E21D5-0DF1-4BCC-A27C-DFFBB201FB52@gmail.com> From: grarpamp Date: Tue, 12 Oct 2021 06:59:00 -0400 Message-ID: Subject: Re: [HEADSUP] making /bin/sh the default shell for root To: freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HTCMv2Ymbz4nSZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="aTQ5z/wr"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grarpamp@gmail.com designates 2607:f8b0:4864:20::a34 as permitted sender) smtp.mailfrom=grarpamp@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::a34:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N > 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. > BTW, toor default to sh, not tcsh. No one said that the toor entry does not use sh. Cheers :)