Sometimes after logging in to the current account under ubuntu, if you want to use the root account and refuse to log in without knowing the password, you need to modify the password of the root account.
By executing:
sudo passwd root
To set the root account password.
You can also pass: sudo passwd username
To change the password of a specific account.