After logging in to the server you can use the below command to reset Webmin’s default password or root user password.
For RHEL/CentOS:
/usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD
For Debian/Ubuntu
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
Happy Hacking 🙂