From nobody Wed May 31 03:05:49 2023 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 4QWDg15R86z4Xf9G for ; Wed, 31 May 2023 03:06:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QWDg12y3sz42Lp for ; Wed, 31 May 2023 03:06:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685502363; bh=QnSGc60KHMQQ2Ugn4CHGguWaeKsH16+e0NKbBmwGuHw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ZrUe/EIdpNJoIO2a2kPurx3Tb5lb7MGclHG1ekcLfe6cj6Mx8tWNoO62NeTOMt+zYXAE2SI/bFjlIlc9EKtA89gfDLqad9a3Vm2SmgZEDkoLxt6isB1WK9V94DPUIzJB7PZUT4BeQOZvBCgIdAPR8J3IljvvImRup8bA3Yapvfv2gOA+X2iTq0UXyLhoYyzffJdH7zCgMcSSZoHTjjb0D2aOBm0hld8vzHAc8f54OhlGnbYJWQZAG91Ff5geZqpiiWC+6bcqKsXpYOnVXpcWefSZMUe3+l/4YOgyOiCA0nLoFuGRi8PNtrgwnUvdxd7HmKPVlxWnn0a6oScpyQT3mw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685502363; bh=10xf/ZYe8CdbrmoZElEbmWX0eXK3J5i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QVWbZ.rfJDn 3x2fTcdjjm2j8jBdBRVrnyoBbSmXz9NNPlmP1TcLQ2TBC0Ma1bxbL8UVNZ_VLRpbeZGSQ.hVgGy8 To0ufsbI.LeRaj5kopizM94Z2vmUew1H16r66XB.nBubTfqwiwrOuQVXDfLQLhVRuCuRvLOein9h 2AVCu3RoXECbtF1hLb516rBBX9F8Cl1M.rGfFPlM7W.aqm35jpFJ2hn94zygjtMGoUFLo96cIrc3 dn8OU70xPnk6VFVRlKnm.3l6BXdDfvVGZPUmCceo_mrOP88LtMCdyx291tVAQUjr0HWnpim6ThRX xV4OgYTEc2LlvCnG3B.gXdi3KzEM75E5ftj2AlQfdiNbdNgeq8H.N3VP9VNAj0Pjzc1stlqm52rO YTLFipqhLWt8nk7FdSijZ9iTwTrfDdINFIUrA4Q5owIinQYAtaEcO0aXasnilr01DiEZulUUD31e dhOTjFXaVTYSvKtfxEbIRQ_a_i0ZpxyR9bN9YfpBYVqsh62Y3TGLGNo5ndKmQ7x6k1uH8uOrlUji fcKFOKmbehuCqmgUAE1QJEESUpkti_I_.wIsWW2TDgl2.Uk3fFIEpTY4BE7vWBZEchbgtmAYoU_g - X-Sonic-MF: X-Sonic-ID: c8ab3422-7b4f-4c5b-b31a-d1c460177e8c Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Wed, 31 May 2023 03:06:03 +0000 Received: by hermes--production-gq1-6db989bfb-66nkp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bddc827ba3d2fd7cc147709a7573a904; Wed, 31 May 2023 03:06:00 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: Surprise null root password From: Mark Millard In-Reply-To: Date: Tue, 30 May 2023 20:05:49 -0700 Cc: Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <8721FE04-3769-473C-BAAD-EB0A4FCFA1D7.ref@yahoo.com> <8721FE04-3769-473C-BAAD-EB0A4FCFA1D7@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4QWDg12y3sz42Lp X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On May 30, 2023, at 18:39, bob prohaska wrote: > On Tue, May 30, 2023 at 11:02:13AM -0700, Mark Millard wrote: >> bob prohaska wrote on >> Date: Tue, 30 May 2023 15:36:21 UTC : >>=20 >>> On Tue, May 30, 2023 at 08:41:33AM +0200, Alexander Leidinger wrote: >>>>=20 >>>> Quoting bob prohaska (from Fri, 26 May 2023 = 16:26:06 >>>> -0700): >>>>=20 >>>>> On Fri, May 26, 2023 at 10:55:49PM +0200, Yuri wrote: >>>>>>=20 >>>>>> The question is how you update the configuration files, >>>>>> mergemaster/etcupdate/something else? >>>>>>=20 >>>>>=20 >>>>> Via etcupdate after installworld. In the event the system >>>>> requests manual intervention I accept "theirs all". It seems >>>>> odd if that can null a root password. >>>>>=20 >>>>> Still, it does seem an outside possibility. I could see it adding >>>>> system users, but messing with root's existing password seems a >>>>> bit unexpected. >>>>=20 >>>> As you are posting to -current@, I expect you to report this issue = about >>>> 14-current systems. As such: there was a "recent" change = (2021-10-20) to the >>>> root entry to change the shell. >>>> = https://cgit.freebsd.org/src/commit/etc/master.passwd?id=3Dd410b585b6f00a2= 6c2de7724d6576a3ea7d548b7 >>>>=20 >>>> By blindly accepting all changes, this has reset the PW to the = default >>>> setting (empty). >>>=20 >>> So it's a line-by-line merge. That's the most sensible explanation = available. >>>=20 >>>>=20 >>>> I suggest to review changes ("df" instead of "tf" in etcupdate) to = at least >>>> those files which you know you have modified, including the = password/group >>>> stuff. After that you can decide if the diff which is shown with = "df" can be >>>> applied ("tf"), or if you want to keep the old version ("mf"), or = if you >>>> want to modify the current file ("e", with both versions present in = the file >>>> so that you can copy/paste between the different versions and keep = what you >>>> need). >>>>=20 >>>=20 >>> The key sequences required to copy and paste between files in the = edit screen >>> were elusive. Probably it was thought self-evident, but not for me. = I last tried=20 >>> it long ago, via mergemaster. Is there is a guide to commands for = merging files=20 >>> using /etcupdate? Is it in the vi man page? I couldn't find it. >>=20 >> # man etcpudate >> . . . >> CONFIG FILE >> The etcupdate utility can also be configured by setting variables = in an >> optional configuration file named /etc/etcupdate.conf. Note that = command >> line options override settings in the configuration file. The >> configuration file is executed by sh(1), so it uses that syntax = to set >> configuration variables. The following variables can be set: >>=20 >> . . . >>=20 >> EDITOR Specify a program to edit merge conflicts. >> . . . >> ENVIRONMENT >> The etcupdate utility uses the program identified in the EDITOR >> environment variable to edit merge conflicts. If EDITOR is not = set, >> vi(1) is used as the default editor. >>=20 >>=20 >>=20 >> So, if you do not want to use vi, you can use either the EDITOR >> environment variable or an EDITOR assignment in >> /etc/etcupdate.conf to change what editor etcupdate uses for >> you to edit merge conflicts with. >=20 > My difficulty is precisely a lack of skill with vi, which I've > used and cursed since starting with 386BSD. Evidently I'm a slow > learner.... I tried other editors, but vi is the only one always > available. =20 Well, there is ed ( and red ). But also built into FreeBSD is: ee ( and ree ). Beyond that you might have to install something. But if "always available" means across operating systems and built-in, instead of needing to be installed, it may be the most common for unixish contexts. But, as I understand, some Linux based OS's do not include (any variant of) vi, having things like, say, nano instead. Some variant of vi would be an install in such cases. I went something like 25 years between usage of vi and could do basic activity right off the bat. (Not that I was sure such would be true when I first had to edit via whatever editor I could find pre-installed at the time.) It is the only non-GUI editor for which such a thing has been true. Why it stuck so well, I do not know. An odd thing about this is that before the 25 year interval, my primary editor expertise was using TECO, including tailoring its interactive use. At this point, I only remember the name. > For the moment, etcupgrade isn't asking for manual intervention. > When it next does I'll pay closer attention and ask better questions. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com