Reference: http://blog.csdn.net/sunxiaoju/article/details/51993091
1. Use: sudo passwd root to set the root password as shown in:
2. Use SU root to test if you can enter the root user, if the # description has been set to the root user's password successfully, as shown in:
3. Go to the/usr/share/lightdm/lightdm.conf.d/directory and open the 50-unity-greeter.conf file using the gedit 50-unity-greeter.conf & command as shown in:
4, in the open file to add the following information, to set the login can select the user login, as shown in:
User-session=ubuntu
Greeter-show-manual-login=true
All-guest=false
5, restart the system, you can enter the user name information, as shown in:
6. Enter the root user name and password as shown in:
7. This appears: Error found when reading/root/.profile, dialog box as shown:
8, click the OK button, enter the system, use the Vi/root/.profile command to modify the file, find MESG N, modified to: Tty-s && mesg N, as shown:
9, Save the exit, and then restart the system.
Ubuntu 16.04 Enable Root user method