Vitux published a tutorial about changing the sudo password through command line on CentOS 8.
How to change the sudo password through command line on CentOS 8
This tutorial shows how the sudo (root) password can be changed on a CentOS 8 server or desktop computer easily.
How to change the sudo password through command line on CentOS 8