Basically in all linux OS we can access root for login. But in ubuntu by default that option is not enabled. if you want to have root login then you have to do some hack on ubuntu OS
Just follow the below step for login as root. And do everything as you want
.
Step 1:
Login ubuntu as your user login details.
Step2:
Then open the terminal and type those command —- sudo -s —– It will ask for root access and type the password. Then type the password root and it will ask for new password. confirm the password. Now close the terminal.
Step 3:
Now again open terminal and type those command —— sudo gedit /etc/gdm/gdm.conf ——- . Its open this file gdm.conf on gedit text editor ( You can open it on other text editor as well ).
Step 4:
Now find for AllowRoot=false .
Step 5:
Then change AllowRoot=true .
Step 6:
Now restart the machine, open the login page and login as user name : root and password : that you given previously (the password type on the terminal for root access.
Now you can enjoy the root access. You can do whatever you want.








5 comments
Comments feed for this article
August 27, 2009 at 11:24 am
krishna
i have been tried your procedure upto step 3 but i have not found the allow root=false command in gdm.conf file so please suggest i want to login as a root
August 28, 2009 at 11:15 am
Saeed
you have missed one thing. open gdm.conf file. find->AllowRoot=false. “allow root=false” this is the wrong one. it is AllowRoot=false . remove the space between allow and root.
October 11, 2009 at 10:20 am
dufus
there is no gdm.conf file in 9.04 server version …any suggestions ???
October 11, 2009 at 11:40 am
Saeed
@dufus sorry i did not use ubuntu 9.04 yet. i will try and let you know. thanks
October 28, 2009 at 11:22 am
Wajid
it worked on ubuntu 9.04