0

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.

0

Use the AWS Management console (https://aws.amazon.com/console/) to add another user with appropriate (we'll presume the user will need root/sudo) privileges. Undo the damage; you can then delete the "new user" you added.

| improve this answer | |
  • Thanks man but didn't work. – Mohd. Umar Nov 15 '16 at 1:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.