If you are useing Webmin system administration and you forget your password you will probably see how frustrating that there is not a way of remembering the password or reset it.
Webmin gives us the only possibility of authentication, but when you are not authenticated, you can not do anything. So we can not change the user password.
A solution still exist using the command line. For this, we need the installation directory, the directory configuration and the user name to reset password. If Webmin is installed in “/usr/share/webmin” and the settings are stored in “/etc/webmin” we can rewrite the admin user password by running the following command as root:
/usr/share/webmin/changepass.pl< config-dir > < login > < password >
*< config-dir > – is the directory where webmin settings are stored.
*< login > – is the username for which we want to reset password.
*< password > – is the new password.
/usr/share/webmin/changepass.pl /etc/webmin root eFNULfDeNYKsd8Yf
After changing the password we can log in normally on port 10000.