This question already has an answer here:
I ran this commands in Terminal and I didnt get any error:
sudo passwd root
and after setting password I ran this command:
sudo passwd -u root
but when I log off or reboot there is no root account!! please somebody tell me how can I login as root in ubuntu 12.04!