I didn't know. So I googled it. Here is what I found.
"All you need to do is open a terminal, and type "su" to become root, then type "passwd" and it will prompt you for a new password."
I did that and it worked. I did not put in a new password as did not want one. But I bet that is how to get a new one if you want one.
FWIW, you DO NOT
need to be root to change your own password. You DO
have to be root if you want to change anyone elses password though.
Changing password for user youcantoo.
Changing password for youcantoo.
Enter current password:
passwd: all authentication tokens updated successfully.
You notice I am not the root user!
If you do what you posted, you are going to change the root password because you are the root user when you issue the passwd command.. If you want to change the username password as the root user then you need to enter the following command.