I have AWS ec2-user with Amazone AMI.
Accidentaly, I changed the ownership of the all the accounts to root in the root directory.
chown -R root:root ./
Now, I cannot login to my ec2-user account using Putty.
I found a similar situation in this link Cannot login to server after file permissions change but my server is on AWS and not physical.