Sashi asked:
Possible Duplicate:
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.
Please help.
My answer:
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
If the /etc/passwd
file is corrupt, you can fix it by running
sudo vipw
See also this question for information on enabling root access via ssh.
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.