From owner-freebsd-bugs@freebsd.org Fri Dec 14 15:59:40 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DD8E1339A8E for ; Fri, 14 Dec 2018 15:59:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 295B683997 for ; Fri, 14 Dec 2018 15:59:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E0FC31339A8B; Fri, 14 Dec 2018 15:59:39 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBAF41339A8A for ; Fri, 14 Dec 2018 15:59:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5304583994 for ; Fri, 14 Dec 2018 15:59:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8C7C118C3 for ; Fri, 14 Dec 2018 15:59:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wBEFxcYr007254 for ; Fri, 14 Dec 2018 15:59:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wBEFxcjX007253 for bugs@FreeBSD.org; Fri, 14 Dec 2018 15:59:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234014] chown: ntpd: illegal user name -- after freebsd-update to 12.0 Date: Fri, 14 Dec 2018 15:59:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vangyzen@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 15:59:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234014 Bug ID: 234014 Summary: chown: ntpd: illegal user name -- after freebsd-update to 12.0 Product: Base System Version: 12.0-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: vangyzen@FreeBSD.org I just updated an i386 machine (not amd64) from 11.2-RELEASE to 12.0-RELEASE using freebsd-update. On boot, the console says: chown: ntpd: illegal user name Sure enough, the ntpd user was in /etc/*passwd but _not_ in /etc/*pwd.db. # getent passwd ntpd # grep ntp master.passwd=20 ntpd:*:123:123::0:0:NTP Daemon:/var/db/ntp:/usr/sbin/nologin # strings spwd.db | grep ntp # strings pwd.db | grep ntp Also, ntpd is running as root. The pwd db files were newer than the plain text files, so pwd_mkdb did run during the upgrade: # stat -x master.passwd passwd spwd.db pwd.db=20 File: "master.passwd" Size: 3019 FileType: Regular File Mode: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ whe= el) Device: 0,70 Inode: 1036545 Links: 1 Access: Fri Dec 14 09:30:48 2018 Modify: Fri Dec 14 09:30:48 2018 Change: Fri Dec 14 09:32:39 2018 File: "passwd" Size: 2509 FileType: Regular File Mode: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ whe= el) Device: 0,70 Inode: 1036629 Links: 1 Access: Fri Dec 14 09:30:48 2018 Modify: Fri Dec 14 09:30:48 2018 Change: Fri Dec 14 09:32:39 2018 File: "spwd.db" Size: 40960 FileType: Regular File Mode: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ whe= el) Device: 0,70 Inode: 1036680 Links: 1 Access: Fri Dec 14 09:48:57 2018 Modify: Fri Dec 14 09:30:50 2018 Change: Fri Dec 14 09:32:40 2018 File: "pwd.db" Size: 40960 FileType: Regular File Mode: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ whe= el) Device: 0,70 Inode: 1036668 Links: 1 Access: Fri Dec 14 09:48:38 2018 Modify: Fri Dec 14 09:30:49 2018 Change: Fri Dec 14 09:32:40 2018 I wonder if pwd_mkdb ran against the wrong/old master.passwd file? Simply running pwd_mkdb worked around the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=