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:

I installed Kubuntu 12.04 on this desktop last September and am the main user of the machine. I can perform most admin tasks such as installing new software with my password, which is also accepted using sudo in a terminal. Some tasks however ask for a root password - the most recent example being when I tried to re-install my HP printer. and my usual password does not work. I have looked at this answer, but it doesn't seem to help as I know my own password. I need to know root's password!

share|improve this question

marked as duplicate by Thomas Ward, karel, Avinash Raj, Eric Carvalho, BuZZ-dEE Jan 31 '14 at 12:19

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.

Duplicate of How do I recover my root password? – Eric Carvalho Mar 12 '13 at 20:23
You should recover your root password. I don't know if there was command to know root password but you can change the password using command sudo passwd – Muhammad Sholihin Mar 13 '13 at 4:21
FYI: There is no root password in a default installation, because the root user account is disabled – Thomas Ward Jan 30 '14 at 19:55
up vote 2 down vote accepted

Running sudo -i in the console will drop you into "root" mode.

share|improve this answer
sudo -i is prefered due to environmental variables. See – bodhi.zazen Mar 12 '13 at 20:55
This is not useful because you also need a password to log as the "root". – skan Oct 18 '13 at 23:35

Ubuntu by default does not have a root password set and relies on your own password entered via sudo for superuser/sysadmin purposes.

If you are adamant on setting a password for root then the following command will do it but it is NOT needed.

sudo passwd root

I would suggest just using sudo and then enter your own password.

share|improve this answer

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