well, I'm pretty sure your command "getent passwd" is supposed to return

user2:*:10002:10002:User2:/home/user2:/bin/bash
but then again, I don't think that's the problem...

could you post your...