Ubuntu didn’t ask my password for root user during installation. So i guess as default Ubuntu has no password set for the root user. To gain root access , type followng command in shell.

sudo passwd

root-user-in-ubuntu

It will prompt to enter password that we set for the first user while installing Ubuntu. After that you are asked to type in the new root password twice. Finally, your root user has its own password.