After installing Ubuntu default is set by the user to log in, many operations we need to switch the user to operate Root
Root User Switching
Use the command "sudo passwd root", then enter the user name and password
Next, enter the root password and confirm
After then use the command "su root", enter the root password into both the root user
Set Root user boot
Into the specified directory:
cd /usr/share/lightdm/lightdm.conf.d/
Modify the file:
gedit 50-unity-greeter.conf
Add half moon in the file content:
Red box reads as follows:
user-session=ubuntu
greeter-show-manual-login=true
all-guest=false
Root user in a graphical interface to log an error --- An error occurred while reading /root/.profile: mesg: tty n
You need to do the following changes:
Use the command "gedit /root/.profile" open the file
change into:
After the save and reboot the machine.
Use the root user can login and password