Grade Level Lesson Plans Poem Generators Excel Word PowerPoint MultiMedia Internet Research Tech Coordinator Tutorials Video Reversal Video Tutorials iPad Lesson Plans iWork Keynote iWork Pages iWork Numbers Mac Multimedia Resources
Search This Site
Custom Search

Login as Root to Ubuntu - The Answer

How to login as root in Ubuntu on the Desktop and Terminal.

No lectures about why not to do it. You can find pages and pages of those from the linux police on their respective forums. This is just the answer.


 

 

Login to the terminal with your regular user account.

1. Add a password to the root account to allow terminal root logins.

Type: sudo passwd root
Enter the password when prompted.

If your Ubuntu login screen has an option to choose "Other" then you are DONE now. Go to the login screen, choose "Other". Your user name is root. use the password you just added. If your login screen does not have "Other" as a login choice, then continue to the next steps.

2. Change directories to the gnome desktop manager

Type: cd /etc/gdm

3. Edit the gnome desktop manager configuration file to allow desktop root logins.

Type: ls
This lists the contents of the current directory. Look for gdm.conf or custom.conf. Whichever one you have is the one you need to edit.

Type: nano gdm.conf
maybe you don't have the nano editor. Type gedit instead of nano in that case.

OR

Type: nano custom.conf
maybe you don't have the nano editor. Type gedit instead of nano in that case.

Find: AllowRoot = false

Change to: AllowRoot = true

Save the configuration and restart your machine. Cntrl + X, then answer Yes, and enter to save.

 

Done. Login as root the desktop.

 

 

For Ubuntu 12.XX versions:

 

Open the Terminal: CTRL + ALT + T

Create a password for the root account - Type: sudo passwd root

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

Now restart your computer. The login screen now lets you manually enter "root" as the user.

DONE