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, just do a
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:
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
then change the password.
Otherwise you can 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:
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.