Install complete if you want to log in as root, open the terminal and enter the following command:
#设置root密码
sudo passwd root
#切换到root用户
Sudo-s
To log in with the login interface using root, you can edit the lightdm.conf file in the/etc/lightdm/directory, if you do not have this file, directly create
Vi/etc/lightdm/lightdm.conf
The Final Document content is:
[Seatdefaults]
#启动后以root身份自动登录, if you need to enter a password to log in, you can comment on the following line
Autologin-user=root
Greeter-session=unity-greeter
User-session=ubuntu
#手工输入登陆系统的用户名和密码
Greeter-show-manual-login=true
#禁用guest用户
Allow-guest=false
Restart after the prompt after the root permission to automatically log on, found that the following prompt:
Error found when Loading/root/.profile
Stdin:is not a TTY
............
Workaround: In the terminal with Command gedit/root/.profile, open the file and find "Mesg n",
Change it to "Tty-s && mesg N
Ubuntu Modify default root account Login