NetBSD Problem Report #56486

From www@netbsd.org  Thu Nov  4 07:44:45 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 393571A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Nov 2021 07:44:45 +0000 (UTC)
Message-Id: <20211104074444.458DC1A923A@mollari.NetBSD.org>
Date: Thu,  4 Nov 2021 07:44:44 +0000 (UTC)
From: rvp@SDF.ORG
Reply-To: rvp@SDF.ORG
To: gnats-bugs@NetBSD.org
Subject: /etc/security should be updated for recent password hash changes
X-Send-Pr-Version: www-1.0

>Number:         56486
>Category:       misc
>Synopsis:       /etc/security should be updated for recent password hash changes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 04 07:45:00 +0000 2021
>Closed-Date:    Thu Nov 04 13:09:05 +0000 2021
>Last-Modified:  Thu Nov 04 13:09:05 +0000 2021
>Originator:     RVP
>Release:        NetBSD/amd64 9.99.92
>Organization:
>Environment:
NetBSD x202e.localdomain 9.99.92 NetBSD 9.99.92 (MYKERNEL) #0: Tue Nov  2 04:11:56 UTC 2021  bld@x202e.localdomain:/usr/obj/usr/src/sys/arch/amd64/compile/MYKERNEL amd64
>Description:
/etc/security should be updated for recent password hash changes.
Otherwise you get complaints in the mail:

Checking the /etc/master.passwd file:
Login root is off but still has a valid shell (/bin/sh)
Login XXX is off but still has a valid shell (/usr/pkg/bin/bash)
Login YYY is off but still has a valid shell (/bin/sh)

>How-To-Repeat:
Update to latest NetBSD-HEAD.
Leave the system running overnight.
At the enchanted, rarely-observed, magical hour of 4:15 AM,
let the /etc/security fairy appear and inspect the system.
>Fix:
--- src/etc/security.orig	2021-01-10 23:24:25.000000000 +0000
+++ src/etc/security	2021-11-04 07:15:16.513615181 +0000
@@ -274,6 +274,7 @@
 		    	$2 !~ /^\$1/ &&
 		    	$2 !~ /^\$2/ &&
 			$2 !~ /^\$sha1/ &&
+			$2 !~ /^\$argon2(i|d|id)/ &&
 		    	$2 != "" &&
 			(permit_star || $2 != "*") &&
 		    	$2 !~ /^\*[A-z-]+$/ &&

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Thu, 04 Nov 2021 13:09:05 +0000
State-Changed-Why:
Committed, thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.