I've setup an EC2 instance(PHP, MySQL, phpMyAdmin).
Last night I accidentally execute some command that messed up the permissions.
I was able to login as
root before (to ssh using puTTy) but now when I try to login using
root I get error which says login as
ec2-user instead of
Now, If I log in using
ec2-user and do
sudo. I get error
sudo: effective uid is not 0, is sudo installed setuid root?.
When I try to login using
su root. I get
Password: and I didn't set any password and default
NO PASSWORD is not working, too.
Now, I can't give permissions to
sudo is broken and I can't login as
root to change permissions because it's asking for password.
How can I overcome this problem?