(232921) somewhat random pw-related errors following system upgrades (was: freebsd-update(8) without an echo of "You must be root to run this.")

2021-02-20 Thread Graham Perrin

On 19/02/2021 21:59, Chris Rees wrote:

Hey,

On 16 February 2021 08:53:29 GMT, Graham Perrin  wrote:



         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 
, 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 :-)


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: freebsd-update(8) without an echo of "You must be root to run this."

2021-02-19 Thread Chris Rees
Hey,

On 16 February 2021 08:53:29 GMT, Graham Perrin  wrote:
>
>
>         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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


freebsd-update(8) without an echo of "You must be root to run this."

2021-02-16 Thread Graham Perrin



        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 
13.0-BETA2

src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.1-RELEASE from update4.freebsd.org... 
done.

Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base world/doc

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/lib32 world/lib32-dbg

Does this look reasonable (y/n)?

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"