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

I am new to linux, so this may be a very simple question.

I have created a modified ami using the ubuntu 11.10 as a starting point. All of the tutorials I have found say that to save an instance you must be the root user, but I have only been able to log in as user Ubuntu. How do I log-in as the root user, or gain root authority, on Ubunty 11.10 so I can bundle and save my modified image?

Thanks in advance!

share|improve this question
up vote 1 down vote accepted

sudo -su

type user password

then you are logged as root user.

If you want to enable root user in ubuntu you have to set the root password with :

sudo -su

type password


type 2 times the password that you want to assign to the root user.

logout and login again with root user and chosen password ...

share|improve this answer
thanks aleroot, sudo -su root and i'm good to go! – Chris Crosley Oct 26 '11 at 16:56

You need to set a root password:

sudo passwd

Also examine the /etc/passwd entry to see if root has a valid shell:

grep root: /etc/passwd

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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