Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by splattne Oct 17 '12 at 17:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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.

share|improve this answer
    
@Sashi said: but this user account does not have any admin privs. – Thomas Berger Oct 17 '12 at 17:22

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