NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/58005: passwd always errors out; cannot change passwords anymore
The following reply was made to PR bin/58005; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/58005: passwd always errors out; cannot change passwords anymore
Date: Sat, 09 Mar 2024 17:47:46 +0700
Date: Sat, 9 Mar 2024 08:00:03 +0000 (UTC)
From: Michael Cheponis <michael.cheponis%gmail.com@localhost>
Message-ID: <20240309080003.5F5E11A923F%mollari.NetBSD.org@localhost>
| OK, ktrace / kdump is attached. Hard for me to tell what's happening, tho.
Have you done (or at least attempted) what Michael van Elst asked ?
pwd_mkdb /etc/master.passwd
It looks to me from the output you supplied that probably the entry for
"mac" (you I presume) has different data for the gecos field in the binary
pwd.db or spwd.db files (which should be the same for this info) from what
is in /etc/master.passwd - and the "passwd" program which is intended to
only update the passwd field, but has to update both spwd.db and master.passwd
doesn't know what to do with this field that it isn't intended to be changing
isn't the same in both versions of the file (text & hashed binary) - they
are intended to be the same.
The pwd_mkdb program (which has been suggested that you use a couple of
times now) will regenerate the binary files from the text file, ensuring
consistency.
Home |
Main Index |
Thread Index |
Old Index