Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1 Answer 1

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.