This program, in volume18 of the comp.sources.unix archives, is invaluable in this kind of thing: pwdiff Tool to aide in merging password files -- Please send comp.sources.unix-related mail to rsalz at uunet.uu.net. Use a domain-based address or give alternate paths, or you may lose out.