If I do something like `chage -M 365 -d 1 -I 0 test` to force a user to choose a new password on next login, they get a message that says 'passwd: Only root can specify a username' and get booted when they try to log in
Sorry for the bug report. The problem appears to be the ssh version 1 daemon calling passwd and passing it the username. I corrected the sshd code and now it works.
Actually, I think this *is* a subtle and relatively easy-to-fix bug in the passwd program itself (/usr/bin/passwd). It makes Red Hat's passwd act unlike every other Unix' passwd -- causing, for example, problems in sshd. I wrote a patch for this bug, and for one bug in the Makefile, at http://mark.datasys.net/redhat/passwd-0.63.patch That's against the passwd-0.63-1.src.rpm package from Red Hat 6.1.
assigned to nalin
Was not able to duplicate on Red Hat Linux 7.3 machine. It may be because of different version of SSH or changes in code since 1999. Please re-open if the problem can be found on your system, and I will try to figure out what differences are causing a 'WORKSFORME'