ubuntu default root password code example
Example 1: set password to root ubuntu 20.04
$ sudo -i
$ passwd root
new password:...
confirm password:...
Example 2: default root password ubuntu 18.04
$ sudo passwd
$ sudo -i
$ passwd root
new password:...
confirm password:...
$ sudo passwd