Ubuntu19.04 logged in as root system

Ubuntu19.04 zero-based entry (two) _ logged in as root system [Video Demo]

After Ubuntu19.04 system installed, the default is not allowed to log in as root graphical interface. We need to install a lot of software just installed the system, if often temporary root privileges via sudo, or use sudo -i command to switch to the root user privileges to operate or too much trouble. If you can log in directly to the graphical interface using the root user, you can use the command directly installed, eliminating a lot of trouble. Here we share methods to enable the root user at the command line window to log graphical interface:

1. Use common user login system

Ubuntu19.04 logged in as root system

2. Right-click the blank screen, select [Open in Terminal options]

Ubuntu19.04 logged in as root system

3. In the Terminal window command, use sudo -i command to obtain root privileges

~$ sudo -i
Ubuntu19.04 logged in as root system

PS: attention, from the command prompt "$" to "#"

4. In the Terminal command window, add the root user password.

~# passwd root
Ubuntu19.04 logged in as root system

5. Modify the contents of the file /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

~ # Gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
end of the file, add the following two lines:
Greeter-Show-Manual-Login to true =
All to false-Guest =

6. Modify the contents of the file /etc/pam.d/gdm-autologin

~ # Gedit /etc/pam.d/gdm-autologin
using the # character, comment out the auth required pam_succeed_if.so user! = (About the third line) root quiet_success this line

7. Modify the contents of the file /etc/pam.d/gdm-password

~ # Gedit /etc/pam.d/gdm-password
using the # character, comment out the auth required pam_succeed_if.so user! = (About the third line) root quiet_success this line

8. Modify the contents of the file /root/.profile

~ # Gedit /root/.profile
the last line of the file, the contents of this line is modified to the following
tty -s && mesg n || true

9. Reboot the system, graphical interface, you can log in using the root user.

Guess you like

Origin blog.51cto.com/435263/2446913