How to reset Webmin root password?
At times we often forget the webmin password for a given user, say root, or after repeated failed login attempts webmin locks the account and one cannot login anymore. In this case you need to wait for couple, three minutes and you will be able to try to login again. However, if you've forgotten your password and need to change it, then login to the server via ssh and run the following command:
For RHEL/CentOS:
/usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD
For Debian/Ubuntu
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
For Thecus NAS
alias webmin-pass='/raid0/data/module/WebMin/sys/bin/changepass.pl /raid0/data/module/WebMin/sys/etc/webmin admin'
alias webmin-restart='/raid0/data/module/cfg/module.rc/WebMin.rc stop | /raid0/data/module/cfg/module.rc/WebMin.rc start'
Now go back to browser and try to login with the new password, it should work.
Comments
Anonymous (not verified)
Sun, 07/13/2014 - 01:54
Permalink
-bash:
-bash: /usr/libexec/webmin/changepass.pl: No such file or directory
-bash: bh3: command not found
Anonymous (not verified)
Tue, 08/12/2014 - 17:19
Permalink
Try: /usr/share/webmin/change
Try:
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
Anonymous (not verified)
Tue, 02/24/2015 - 01:18
Permalink
the latter of the 2 worked
the latter of the 2 worked for me and thank you poster as i had searched for it for a decent amount of time and couldnt get it figured out
Anonymous (not verified)
Thu, 08/14/2014 - 09:58
Permalink
updatedb && locate
updatedb && locate changepass.pl
grab the path and execute
Anonymous (not verified)
Tue, 10/20/2015 - 02:07
Permalink
Thank you for the tip, much
Thank you for the tip, much appreciated. Worked for Ubuntu server.
Anonymous (not verified)
Mon, 07/04/2016 - 19:09
Permalink
A million thanks to you.
A million thanks to you.
Anonymous (not verified)
Thu, 12/15/2016 - 13:00
Permalink
This worked - where the
This worked - where the Webming website tutorial didn't, so thank you very much. It really helps.
Anonymous (not verified)
Fri, 07/21/2017 - 07:18
Permalink
Thkz. Work perfect on Centos
Thkz. Work perfect on Centos
alladmin (not verified)
Thu, 01/04/2018 - 09:15
Permalink
Thankyou this work!!!
Thankyou this work!!!
Add new comment