Hello,
well, the way passwd works is it first checks the uid of the user, and then changes the password of the first user it finds with that uid.
In the sources of passwd there is the following line, with comments:
static char *name; /* The name of user whose password is being changed */
I have not read the full source file, but from the comment, and the way passwd works in my system, I see that the program changes the password according to the user name, and not the uid. That is a better behaviour, I should say.
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ ----------------------------------------------------------------------