pwck ?
Good call! That and the corresponding grpck found a couple of duplicate lines that seemed to be confusing things.
Lucky!... When this happened to me, pwck and grpck only succeeded in messing stuff up even more (each run of pwck increased passwd files size by around 50%)
Cheers, MaZe.