From owner-freebsd-current@freebsd.org Sat Feb 20 11:48:07 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A3572543458 for ; Sat, 20 Feb 2021 11:48:07 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 4DjRXQ6T36z3Klg for ; Sat, 20 Feb 2021 11:48:06 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x32e.google.com with SMTP id o15so9280307wmq.5 for ; Sat, 20 Feb 2021 03:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=LYKWyRmFa9nfP6+qXivYoz9oy5rV6/NJ/stw1VUB2Qk=; b=XtqouwAjG8xZvrHI47c0mocMr/cr+zLbzasFepV7t2BnPZub7AbQH57HZVlcfkia7v hK4IKFT49Ec9el2GKH88KROpalPOMh9YJQEbKNP2V6DL9mDN+gIXsmIL8v8t48VgvSXT Oems4ayvTxh9bgXx10MHj/fjKlWGzF149wNl9+xAhTgYooHTzLEH7py45YXNFIBnude4 rXfK9g1ar2XHCjAdF5sFF1ffbC2NwlrAPq3v1AUoPRRt/LNp+h4kNOguTx6VvEbcCdQd L5j9c+tkXp6HL4brnjC0vyGi/pNoWM+CRzJtZpiHOMuH+/2hla1G0suCglcXc1ULvZc3 6Ghw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=LYKWyRmFa9nfP6+qXivYoz9oy5rV6/NJ/stw1VUB2Qk=; b=Wi3M9JRQw4o6/BECxzom0H7AUh0gHVuDdhyj5pHg6pnNpO5bSYDXSdTqP0qL2UsYlQ 3oKfVsyZTPNMGc8OkdNjXgaKNzlRNYuzy0lEKX3Ie9cYiZHv0hE+Ucn4BtOvd0CrTIpC 9Vdk6y94Gj2l4Rt9KUTYDdw6qp4+MyFhY5l28IQkoKvKo0LZ458aOQm/yDw2JKhZc91P j2EN+a+JDwaFArqbf7SW/wC3hPPPjgCTzdrbv5Q63o919BNVAXJ6tlg3jxEjOr6anQHg Tygp29Ubkhd9mBp6xr1preukcHRk1xm2UOjvl8YSLx7nibMmeJMKYQ6vJdvL6586H6oi I4Ig== X-Gm-Message-State: AOAM533f6PokcJyNMwHHLLtxUH0Rrgzygll6gmL/vtkqmgH6LX6YDiJN nlDIDVDVDXqbMo1BXq739/Df2S5jvDuCew== X-Google-Smtp-Source: ABdhPJxID/musoSvd6JSO7a+TkFHTxZP2RoLyr41ZelazZSF7XMwuguJKSzsxhdbmWpIDMF4CdXXag== X-Received: by 2002:a1c:7402:: with SMTP id p2mr11963135wmc.43.1613821685186; Sat, 20 Feb 2021 03:48:05 -0800 (PST) Received: from [192.168.1.13] (88-105-96-80.dynamic.dsl.as9105.com. [88.105.96.80]) by smtp.gmail.com with ESMTPSA id m2sm15481269wml.34.2021.02.20.03.48.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Feb 2021 03:48:04 -0800 (PST) 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.") To: Chris Rees References: <1d5a4d6b-b857-d5c5-070f-8d13f4ae3deb@gmail.com> Cc: freebsd-current@freebsd.org From: Graham Perrin Message-ID: Date: Sat, 20 Feb 2021 11:48:04 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4DjRXQ6T36z3Klg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XtqouwAj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::32e as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RECEIVED_SPAMHAUS_PBL(0.00)[88.105.96.80:received]; FROM_EQ_ENVFROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::32e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::32e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32e:from]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2021 11:48:07 -0000 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 :-)