Open a terminal window in Ubuntu:
Log in as your username and enter your password when requested.
Switch to super user root, as follows:
sudo -s (enter)
the result is:
root@yourhostname
Now set-up a password for the administrative user named ‘root’ as follows:
passwd
(enter password twice as requested)