From nobody Wed Apr 19 16:58:03 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1n6L63r9z46C3X for ; Wed, 19 Apr 2023 16:58:02 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1n6K2pv1z3pk1 for ; Wed, 19 Apr 2023 16:58:01 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net; dmarc=none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 33JGw4f5024144 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 19 Apr 2023 09:58:04 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 33JGw3ph024143; Wed, 19 Apr 2023 09:58:03 -0700 (PDT) (envelope-from fbsd) Date: Wed, 19 Apr 2023 09:58:03 -0700 From: bob prohaska To: freebsd-ports@freebsd.org Cc: bob prohaska Subject: Installing mail/mutt erased a user account Message-ID: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [1.22 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.99)[-0.987]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; NEURAL_SPAM_SHORT(0.28)[0.280]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.02)[0.025]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[zefox.net]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Q1n6K2pv1z3pk1 X-Spamd-Bar: + X-ThisMailContainsUnwantedMimeParts: N It appears that installing mail/mutt erased a user account. Mutt was compiled locally using poudriere and installed via pkg from the local repository. After installation it was still possible to log in as the regular user, but su asked "Who are you?" when invoked. It developed that the original username was absent from /etc/passwd and /etc/master.passwd, but the original home directory was present, in this case /usr/home rather than /home. Re-running adduser as root allowed reinstatement of user login and su now behaves normally. Adduser didn't report the account as existing, so how login by ssh worked is mysterious and could be indication of a recollection error on my part. This was on a Pi2 v1.1 running FreeBSD www.zefox.com 14.0-CURRENT FreeBSD 14.0-CURRENT #22 main-1d35493e46: Tue Apr 18 06:23:00 PDT 2023 bob@www.zefox.com:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm In the meantime sendmail was reinstated as the MTA. That's been done before with no ill effects, but it was a near-simultaneous change that might have contributed to the confusion. I'll chalk this up to faulty wetware unless advised otherwise. Thanks for reading, bob prohaska