Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2021 11:48:04 +0000
From:      Graham Perrin <grahamperrin@gmail.com>
To:        Chris Rees <crees@bayofrum.net>
Cc:        freebsd-current@freebsd.org
Subject:   (232921) somewhat random pw-related errors following system upgrades (was: freebsd-update(8) without an echo of "You must be root to run this.")
Message-ID:  <c5e7e5d7-e785-100d-c681-c70de8e4e368@gmail.com>
In-Reply-To: <BAA5410A-FAC7-45D1-9295-CB1CD3A47F6A@bayofrum.net>
References:  <1d5a4d6b-b857-d5c5-070f-8d13f4ae3deb@gmail.com> <BAA5410A-FAC7-45D1-9295-CB1CD3A47F6A@bayofrum.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19/02/2021 21:59, Chris Rees wrote:
> Hey,
>
> On 16 February 2021 08:53:29 GMT, Graham Perrin <grahamperrin@gmail.com> wrote:
>> <https://cgit.freebsd.org/src/tree/usr.sbin/freebsd-update/freebsd-update.sh?id=48ffe56ac5b7adb5b851d32be12b2ec0f13705a4#n555>;
>>
>>          echo "You must be root to run this."
>>
>> Below: is this my PEBKAM, or (with a system that is preconfigured to
>> deny login as root) _should_ there be an echo of the requirement to run
>>
>> as root?
>>
>> ----
>>
>> mowa219-gjp4-vm-hellosystem-eol-freebsd% su -
>> Password:
>> su: Sorry
>> mowa219-gjp4-vm-hellosystem-eol-freebsd% sudo grep LOCKED
>> /etc/master.passwd
>> root:*LOCKED*:0:0::0:0:Charlie &:/root:/bin/csh
>> mowa219-gjp4-vm-hellosystem-eol-freebsd% sudo freebsd-update upgrade -r
> Sudo means that you are root.  *LOCKED* just disables the root password.
>
> Chris

Thanks for the clarification.

----

As background: I spent many hours repeatedly testing freebsd-update 
upgrade from 12.1-RELEASE to 12.2-RELEASE-p3 (and greater) in virtual 
machines, trying to understand why (a bug) mysql57-server would not 
install following an upgrade with the root password _disabled_.

Later tests included multiple consecutive successes (bug-free) with the 
root password _enabled_ – enough consecutive successes for me to assume 
that the bug was somehow caused by the *LOCKED* aspect.

That period of consistent success was followed by reproduction of the 
bug with the root password _enabled_, at which point I realised the 
wrongness of my assumption. Confused by the randomness, I began to 
wonder whether – in rare situations – sudo might be not entirely effective.

Eventually I realised, the failures to install mysql57-server were 
symptomatic of FreeBSD bug 232921 
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232921>, which 
involves pwd_mkdb(8).

I'll not attempt to understand why bug 232921 was not consistently 
reproducible during my tests, but I'm glad that it's unrelated to 
disabling the root password; and I no longer doubt the usefulness of 
sudo :-)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c5e7e5d7-e785-100d-c681-c70de8e4e368>