Subject: Re: 2.0 borked passwd database
To: Russell McManus <email@example.com>
From: Steven M. Bellovin <firstname.lastname@example.org>
Date: 05/06/2004 23:14:07
In message <email@example.com>, Russell McManus writes:
>I just upgraded to 2.0 by hand, and I must have made a mistake during
>etcupdate, because my normal login id is no longer in the wheel group.
>No problem, boot -s, then good ole' 'usermod -G wheel russe' will save
>the day. If only..
> pwd_mkdb: text files and databases are inconsistent
> pwd_mkdb: re-build the databases without -u
>Ok, doesn't sound too bad. But "man pwd_mkdb" I still can't figure
>out how to "re-build the databases without -u". This must be a really
>easy one. Any ideas?
The man page (and the source) say that -u means update the entry for
one user only. I think that if you jsut run 'pwd_mkdb' with no
arguments, it will do what you want.
An easier solution is to use 'vipw' and write something out, to
persuade it that you've changed something. Heck, you can add something
if you want -- and when you exit, it will Do the Right Thing.
--Steve Bellovin, http://www.research.att.com/~smb