On a standard desktop installation, I created my administrative and user login. Further with some applications, the system ask for the root password.

So my question is: What will be the default password for the root login when I never created it during the installation process?


By default root does not have a password and the root account is locked until you give it a password.

When you installed Ubuntu you were asked to create a user with a password. If you gave this user a password as requested then this is the password you need. If not, or you have forgotten it, then you need to set a password.

Instructions on how to do it are here: How do I reset a lost administrative password?

Once you have an administration password you can use sudo to run commands that would otherwise require you to be root and enter your password.

If you want to set a root password see this question How to enable root login?

However, read all the answers carefully first to make sure you want to do this. It's not recommended and many of the answers explain why.

  • 1
    Just an addition to Warren's answer: read my answer to this question: Root password needed if you're getting prompted for a password from a GUI box (don't pay attention to the actual question, just try to understand the difference between the prompts). – Alaa Ali Sep 20 '13 at 7:44

Open terminal and type following command:

sudo passwd root

then press enter button. Type in your new 'root password', like '123456' and verify the new password, by entering it again, followed by the enter button.

Now your new 'root password' is set to '123456'.

  • 3
    That's not what the OP asked, don't suggest setting a root password without mentioning the implications. – guntbert Mar 16 '14 at 12:42
  • 2
    . . . . and certainly do not use 123456 as password ;-) – neverMind9 Oct 25 '18 at 19:33

Are you sure that the system is asking for the root password?. It usually asks for your password to request elevation.

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