How to Login to Ubuntu as Root User?

I searched this issue at internet and found the following article:

http://www.sizlopedia.com/2008/04/16/how-to-login-to-ubuntu-as-root-user/

This article gave the following steps to login to Ubuntu as Root User:

  1. Open the terminal and type: sudo passwd root
  2. When you see the prompt that says “Enter new UNIX password”, enter the password you want for the root user and confirm it.
  3. Type: sudo gedit /etc/X11/gdm/gdm.conf
  4. Locate the line that says “AllowRoot=false”. Change it to “AllowRoot=true”.
  5. Save the file
  6. Exit gedit, logout and then reboot.

I tried it and found out there is a little bit difference in my system. The version of my Ubuntu system is V8.10, and the gdm.conf did not locate in /etc/X11/gdm/, it located in /etc/gdm. So change the step 2 to sudo gedit /etc/gdm/gdm.conf, it’s ok.

eaglet

The last day of the year of tiger.

原文地址:https://www.cnblogs.com/eaglet/p/1948844.html