So you must have root password.
Command1: how to change root password
If you are login in root then only you can change root password
Type passwd root
Then it will ask you to type new password
Type the new password for 2 time
Then your password for root can successfully changed