From owner-freebsd-questions@freebsd.org Sat Feb 27 23:49:37 2021 Return-Path: Delivered-To: freebsd-questions@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 6D359557FB4 for ; Sat, 27 Feb 2021 23:49:37 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from mail.lordcow.org (lordcow.org [IPv6:2c0f:fb18:402:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "devaux.za.net", Issuer "R3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dp3Cc20V5z4Xyy for ; Sat, 27 Feb 2021 23:49:31 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from lordcow.org (localhost [127.0.0.1]) by mail.lordcow.org (8.16.1/8.15.2) with ESMTPS id 11RNnKva009865 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 28 Feb 2021 01:49:20 +0200 (SAST) (envelope-from lordcow@lordcow.org) X-Authentication-Warning: lordcow.org: Host localhost [127.0.0.1] claimed to be lordcow.org Received: (from lordcow@localhost) by lordcow.org (8.16.1/8.15.2/Submit) id 11RNnFS8009681 for freebsd-questions@freebsd.org; Sun, 28 Feb 2021 01:49:15 +0200 (SAST) (envelope-from lordcow) Date: Sun, 28 Feb 2021 01:49:15 +0200 From: Gareth de Vaux To: freebsd-questions@freebsd.org Subject: Re: user account disappeared Message-ID: References: <3a853381-8da5-d520-ce6b-4e193e47396c@holgerdanske.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a853381-8da5-d520-ce6b-4e193e47396c@holgerdanske.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lordcow.org X-Rspamd-Queue-Id: 4Dp3Cc20V5z4Xyy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bsd@lordcow.org designates 2c0f:fb18:402:5::2 as permitted sender) smtp.mailfrom=bsd@lordcow.org X-Spamd-Result: default: False [-3.29 / 15.00]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEFALL_USER(0.00)[bsd]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2c0f:fb18:402:5::2:from]; R_SPF_ALLOW(-0.20)[+ip6:2c0f:fb18:402:5::2/64:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2c0f:fb18:402:5::2:from:127.0.2.255]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[lordcow.org]; NEURAL_HAM_SHORT(-0.99)[-0.992]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:37199, ipnet:2c0f:fb18::/32, country:ZA]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-Mailman-Approved-At: Sun, 28 Feb 2021 09:30:22 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2021 23:49:37 -0000 On Sat 2021-02-27 (13:39), David Christensen wrote: > Are you using NIS, LDAP, Kerberos, etc.? Nope. > Is authentication working for root on the console? Via su(1)? Via local > ssh(1)? Via network ssh(1)? Yes root and all other users are fine. Just lostuser has disappeared: # getent passwd lostuser # > Is authentication working for lostuser on the console? Via su(1)? Via > local ssh(1)? Via network ssh(1)? No, though I don't have console access right now. > Is authentication working for other accounts on the console? Via su(1)? > Via local ssh(1)? Via network ssh(1)? Apart from console access yes everything/everyone else is working. /etc/*pwd.db seems out of sync with /etc/*passwd for lostuser. Though they were all touched at the same time when the non-related user's password was changed: # ls -l /etc/*pwd.db /etc/*passwd -rw------- 1 root wheel 4092 Jan 23 12:22 /etc/master.passwd -rw-r--r-- 1 root wheel 2621 Jan 23 12:22 /etc/passwd -rw-r--r-- 1 root wheel 40960 Jan 23 12:22 /etc/pwd.db -rw------- 1 root wheel 40960 Jan 23 12:22 /etc/spwd.db