How to reset Webmin root password?
EDIT: Since Webmin 1.974+ you can just:
webmin passwd username
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, 09/03/2020 - 16:13
Permalink
yes this is worked in my
yes this is worked in my ubuntu 18.04
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
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!!!
Anonymous (not verified)
Thu, 05/24/2018 - 03:47
Permalink
For Arch Linux:
For Arch Linux:
/opt/webmin/changepass.pl /etc/webmin/ root NEWPASSWORD
Anonymous (not verified)
Wed, 07/29/2020 - 09:46
Permalink
how to reset webmin password.
how to reset webmin password. i forgot what i have changed. and iam not from IT background. i ahve taken google cloud, created webmin, changed the password from webmin, but forgot now how to rest it. how should i open my webmin again.
mark edwards (not verified)
Fri, 05/28/2021 - 08:57
Permalink
this did not work for me -
this did not work for me - forum.virtualmin.com/t/odd-issue-with-solution-with-rocky-linux/110863/4
response:
This issue has been resolved for Webmin 1.974+. We added a new webmin command called passwd, which enables you to change Webmin user password from any location by running:
webmin passwd username
CarlV (not verified)
Thu, 11/18/2021 - 19:00
Permalink
The new Webmin command worked
The new Webmin command worked perfectly.
Add new comment