1.sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf (ubuntu14.04)
sudo gedit /etc/lightdm/lightdm.conf(ubuntu12.04)
3.再在中端中输入:sudo passwd root
4.输入你想要的密码,关机重启在多出的登录框里输入root 还有你的密码就好了!
1.sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf (ubuntu14.04)
sudo gedit /etc/lightdm/lightdm.conf(ubuntu12.04)