I would like to enable the root account on my Ubuntu installation.
I realize the security implications of this.
While it's possible to do, it is not recommended.
To actually enable root logins first you have to set a password for the root account and then unlock the locked root account. If you don't set a password for the root account the
So, first execute in a terminal
you will be prompted for a new Unix password. Write it twice (second for confirmation).
to unlock the account. This should return
If you want to disable root account in Ubuntu you need to lock the root account by using the following command
Alternatives to root login
If you want to work on a root console you can also use
Only do this if you know what you are doing. More information on why to stay with sudo here
Graphical version needs setting up 1st:
Note: Running users-admin with elevated privileges no longer works because of a bug that is marked as "Won't Fix" for security reasons. See https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/685215 for an explanation.
You can enable the root account by setting the password as
while it is not recommended at all. From help Ubuntu
Once enable you can disable the root account as
Here are the links to enable root login for Ubuntu 12.04 & [Ubuntu 12.10]
In Linux there is a special account called root. By default it is locked in Ubuntu but you can enable the root account.
This is normally not a good idea however and you should consider very carefully before enabling the root login.
There are several good reasons not to login as root but use sudo instead including
This is discussed in more detail in the RootSudo Comunity Documentation
If you have a number of commands which would normally require sudo you can type
As you can see it is almost never necessary to enable the root login.
That said to enable the root login all that is required is to set a root password
and set a password. You will then be able to login as root but for all the reasons I have given above and more I would not recommend you do it.
There's no need for an enabled root account. You can simply use
Simple answer: Yes, you can do it.
Currently there are two things preventing root from logging in on default Ubuntu.
The following command fixes both issues in one go:
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?