Logging as “root” in Ubuntu

Have you ever wanted to Login as “root” in Ubuntu and have gotten the message that the “root” is not allowed to login? Actually, that is because loggin as “root” in Ubuntu is neither recommended nor necessary. Doing so can leave your computer more intrusion-prone and, besides that, it could be that you can mess up some files or make another accidental mistake. Most of times, any administrative command can be issued just by using “sudo” in front of the command. However, in very exceptional cases it is really more convenient or even necessary to login as “root”. Then what? It is actually possible to login as root in Ubuntu. But, again, I do not recommend you to do so. As I said, it is almost always unnecessary and dangerous.

Well! if you are still here and really want to know how to login as “root” in Ubuntu (at your own risk), you need to know that two steps are necessary to enable GUI “root” login. First, a password has to be assigned to the “root” account which can be done by issuing the following command in a terminal:

sudo passwd root

Then, if one really wants to enable the GUI “root” login (not recommended, think again!), following command can be used:

gksu gdmsetup

A GUI opens. In the security tab, there is an option which can be used to allow local system administrator login. The option needs to be checked in order to allow the “root” login. I highly recommend you not to do so and if you are keen to do so, do not let it to remain that way and bring the system to its default state AS SOON AS POSSIBLE.

Follow

Get every new post delivered to your Inbox.