Liberian Geek
  • Home
  • How-To/Tips
  • Linux
  • Windows

Login as Root in Ubuntu 12.04 (Precise Pangolin)

Want to enable root logon in Ubuntu 12.04? Well, even though it’s not recommended, it’s still possible to login with the root or administrator account, and this brief tutorial is going to show you how. The reason it’s not recommended is simple; because people make mistakes. Making the smallest mistakes in Ubuntu while login as the root user can completely render your computer inoperable. Besides damaging your system, it also creates security risks to login as the root user.

If you still want to login as the root user after all the risks I mentioned above, then continue below to learn how.

Objectives:

  • Enable the root account in Ubuntu 12.04
  • Enjoy!

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to create a new root password.

sudo passwd root

 

root_precise

 

Next, copy and paste the commands below to enable manual or other login.

sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

 

root_precise_2

 

Restart your computer and choose to login as root.

 

root_precise_1

 

Enjoy! When you login, the username on the username will show Guest, ignore that. You’re root!


Related Posts

  • Ubuntu 12.04.2 Released With Support For Systems Using UEFI Firmware With Secure Boot Enabled
  • LibreOffice 3.6.2 Maintenance Update Released
  • Blender 2.64 Released: Install it in Ubuntu 12.04 (Precise Pangolin)
  • Install / Upgrade to Linux Kernel 3.6.0 in Ubuntu 12.04 (Precise Pangolin)
  • OpenShot 1.4.3 Released: How To Install / Upgrade in Ubuntu 12.04

Home > How-To/Tips, Linux - 9 May 2012
Tweet
Got anything to say? Go ahead and leave a comment!
  1. Deoye says:
    February 11, 2013 at 9:41 AM

    Thanks

    Reply
  2. RDB says:
    February 17, 2013 at 12:23 AM

    I see the Ubuntu forums frown on this, but coming from a GUI OS like Windows how else do they want us to edit files that need fixing?

    My problem occurred when I added a repository in the update manager that caused the Update manager to crash as soon as it opens. So I figured the only way to fix it is to edit /ect/apt/sources.list in a GUI but for this I need ROOT priviliges, which I enabled easily enough but then could not log in the account at the login screen.

    So thanks a lot man..this got me sorted in no time.

    Reply
  3. Antoine says:
    March 27, 2013 at 8:50 AM

    Thank you.

    Reply
  4. SHISHA says:
    March 28, 2013 at 6:14 AM

    Thank you very much!

    Reply
  5. Sreekanth says:
    April 3, 2013 at 6:20 AM

    Thank You…:)

    Reply
  6. emerth says:
    April 3, 2013 at 2:24 PM

    Honestly I think that “Making the smallest mistakes in Ubuntu while login as the root user can completely render your computer inoperable…” is a bit precious.

    A thoughtful person, who reads a few docs or FAQs will not will-he nill-he kill a Linux box dead logged in as root.

    At worst such a person will mess up some subsystem, requiring him/her to read more docs and learn what she/he did wrong.

    Reply
  7. JK says:
    April 9, 2013 at 10:41 PM

    Agreed, not recommended. ‘Sudo’ is the way to go for elevated permissions. With that being said, how about listing the command(s) to reverse these steps? Thanks!

    Reply
  8. techmd says:
    April 14, 2013 at 2:25 PM

    Really helpful and easy to follow guide. Thank you so much, you got me out of a bind!

    Reply
  9. pard33p kumar says:
    April 15, 2013 at 3:18 PM

    but i have installed many software and packages into my admin account but when i login into root via this procedure then the root account is just like a fresh and newly installed ubuntu, what to do ?

    Reply
  10. Bharathkumar says:
    April 20, 2013 at 2:14 PM

    That Really worked ……….:-)

    Reply
  11. Brian says:
    April 23, 2013 at 4:31 AM

    can you tell me how to reverse or remove this command, please? It didn’t give me root access as suggested, but since I issued this command, I can’t shut down my PC unless I issue the command “sudo poweroff” in terminal.
    Thanks

    Reply
  12. Bharathum says:
    May 17, 2013 at 3:36 AM

    This really works. At first it was confusing with the user and password that requires, but at last I figured it out. Thanks for the info! more more tricks from you..:D

    Reply
Comment Below!
Click here to cancel reply.



Follow @liberiangeek

Recent Posts
    • How Do You Manage MySQL Databases In Ubuntu 13.04 Raring Ringtail
    • Say Yes To Google Play Music Manager In Ubuntu 13.04 Raring Ringtail
    • Delete Junk, Improve Performance And Increase Privacy With BleachBit In Ubuntu 13.04 Raring Ringtail
    • Firefox 21 Released For Windows, Mac And Linux Systems
    • How Can You Find System Information In Ubuntu 13.04 Raring Ringtail
    • Is There A Better Task Scheduler In Ubuntu 13.04 Raring Ringtail?
    • Want LAMP (Linux, Apache, MySQL, PHP) In Ubuntu 13.04?
    • Support For Ubuntu 10.04 / 11.10 Desktop And 8.04 Server Edition End Today
    • Want uTorrent In Ubuntu? You May Have To Settle For qBittorrent Instead
    • LibreOffice 4.0.3 Released–Third Minor Release Of LibreOffice 4.0 Family

    Copyright © 2009 - 2013 Liberian Geek        Privacy Policy |      About Us |      Contact Us |      Search

    ↑ Top