Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

This question already has an answer here:

ubuntu@ubuntu:~$ su
su: Authentication failure

I installed Ubuntu to a USB stick. I didn't set any password any time - why can't I use su?

share|improve this question

marked as duplicate by Eliah Kagan, Raja, Seth, con-f-use, belacqua Apr 2 '13 at 17:42

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.

This is the same situation as su command + authentication failure‌​. The only difference is that since it's a live environment, you don't have to enter a password for sudo commands to succeed. We should probably close this as a duplicate of that. – Eliah Kagan Apr 2 '13 at 13:20

if you want to turn into a root user then you can use sudo -i from terminal .

share|improve this answer

There is normally no need to set a root password, you can do everything by using the sudo command.

If you still want to change the root password, you will need to open a root shell by entering

sudo -i

in the terminal. If you're using the LiveCD version of Ubuntu, it won't ask you for password, otherwise it will ask you for the password of the user who is currently logged in.

The actual password for root account is generated (and thus unknown), if you want to set it to a known value, you can enter the following in a root shell:


This will prompt you for a new password without asking for the old one.

share|improve this answer
There is normally no reason at all to set a root password. – guntbert Apr 4 '13 at 20:39

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