Description of problem:
We have accounts that use the same UID. This carries over from our other
systems. On these other systems if you are logged in as a specific user and run
passwd you can change that accounts password but in RHEL it want's to change the
main accounts password.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create 2 accounts using the same UID
2. Set passwords as root
3. login to the second account and try to change the password.
Tries to change the first accounts password
Change the logged in accounts password.
passwd gets the name of the account from the getpwuid(getuid()) call. It would
have to allow to specify username on the command line.
We can consider this for future RHEL releases.
Using multiple accounts with the same UID will always be problematic. I don't
think we should actively support this in passwd.