Subject: Re: 2.0 borked passwd database
To: Steven M. Bellovin <email@example.com>
From: Russell McManus <firstname.lastname@example.org>
Date: 05/07/2004 13:45:36
"Steven M. Bellovin" <email@example.com> writes:
> In message <firstname.lastname@example.org>, 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.
I tried that, and it wants a filename as an argument. But I couldn't
figure out what filename to supply.
> 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
I'll try that next, thanks for the help.