root locked out of EC2
How can I restore root account that is running on EC2 Ubuntu platform?
In the /etc/passwd the root username got replaced with something like this – “text with space”
Now I cannot log in using the root password. I was able use a user account to login but this user account does not have any admin privs.
You enable the root account on Ubuntu by first reading the strong warnings in the documentation, and then if you still want to proceed…
sudo passwd root
/etc/passwd file is corrupt, you can fix it by running
See also this question for information on enabling root access via ssh.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.