0

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.

0

1 Answer 1

2

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.

1
  • @Sashi said: but this user account does not have any admin privs. Oct 17, 2012 at 17:22

Not the answer you're looking for? Browse other questions tagged .