Jun 18, 2009

Root Login in Ubuntu

In this post I am going to explain how to enable root login from the Login window in Ubuntu.

Ubuntu , by default, does not allow the root user to login from the login window

To change this behaviour follow these steps.

1.Login as a normal user

2.Open System -> Administration -> Login Window
It will ask for the password, enter your password

3.In the Security Tab, under the Security section select
Allow local system administrator login
Close it.

4.Open System -> Administration -> Users and Groups

5.Here root is disabled. Select the root and click Unlock button.
Again enter your password.

6.Then click on Properties button.
If properties is disabled , clicking root again will make it active.

7.In the newly opened 'Account root Properties window', you can set the root password
under the Password section

8.Click OK and then logout and try login as root.

Edit(07-12-2009): In Ubuntu9.10 you can just type
sudo passwd root
in the terminal. It will ask for the password and confirm password.
Afterwards the root user will be enabled in the login screen