Follow the below steps to Login as a root From GUI in Ubuntu 12.04 LTS Precise Pangolin
1)Login as a normal user which you have created during Installation.
2)Click onUnityDashandSearch for Terminaland OpenTerminal
3)Execute Below Command.
sudo passwd root
[sudo] password for tejasbarot: ****** <——– Enter your Current User password from which you have logged in from GUI—->
Enter new UNIX password: ****** < ———Enter New password which you want to set for root user ——>
Retype new UNIX password: ****** < ———Retype New password which you want to set for root user ——>
4)That’s It. You have successfully Setup Your root user’s password. Now Log out from Current User.
5) If No “Other Option on Login screen than please click on this linkhttp://www.tejasbarot.com/2012/04/30/howto-other-login-option-on-login-screen-ubuntu-12-04-lts-precise-pangolin/On Login Screen, Type Username (root )and password which you have setted up in step 3.
DO IT AT YOUR OWN RISK.
1) You have to be root to perform this how-to.
If you are not root then be root by executing following command :-
ubuntu-12.04lts@tejas-barot-linux-ahmedabad:~$sudo su – ( Single Hyphen )
2) First of all Please take backup of original file, execute following command :-
root@tejas-barot-linux-ahmedabad:~#cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig
3)Now Open/etc/lightdm/lightdm.conf, Execute Following command :-
root@tejas-barot-linux-ahmedabad:~#vi /etc/lightdm/lightdm.conf
4)Now Please enter following line to [SeatDefaults] Selection:-
greeter-show-manual-login=true
For Example your/etc/lightdm/lightdm.confshould look like below :-
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true
Now Save and Exit from file. ( ESC and :wq ).
5) Now reboot Ubuntu 12.04 LTS Precise Pangolin, You will able to see “OTHER” Or Login window which asks for Username and Password on Login screen/Window.