Home Servers Reset Webmin Root Password via SSH on AWS and Other VPS

Reset Webmin Root Password via SSH on AWS and Other VPS


reset webmin root using ssh

Want to Reset Webmin Root Password via SSH on AWS and Other VPS?

Since long time; I am experimenting on Linux and Windows VPS (Virtual Private Servers). Even if I am not an Full Server Administrator; I must say that I found that I am very good at it. 😀

Webmin is a wonderful thing if worked out properly. It is a very powerful Server Administration Panel. Needs more work though but I believe that it gives much more control than Kloxo or any other free panel.

I started experimenting with AWS (Amazon Web Services) Elastic Cloud Computing 2 (EC2) lately and found it wonderful. I will write to-do guides on it with many aspects which other never tried to explain.

However there is one nasty thing with AWS that it uses AMI (Amazon Machine Image) and AMIs uses Certificates instead of root access password. So; if you installed Webmin on AWS or you just lost your Webmin Password on any VPS here is what you have to do;

1. Login to Server via SSH (using putty etc). This is common on both VPS and AWS EC2.

2. Copy paste the following command

sudo /usr/libexec/webmin/changepass.pl /etc/webmin root PWD

Where PWD is your new password which you want to set.

3. Enter – Result code shall be self explaining about what happened.

4. Go to your Webmin via “YourIPAddress:10000” and try your new password with user ‘root’.

Have fun!


  1. Ramesh

    September 17, 2012 at 4:02 pm

    Amazing. It worked like charm. Just resetted my webmin password. Thanks to you.


  2. VPS_Webmin

    September 17, 2012 at 11:58 pm

    Thank you. Was able to change the webmin password on my aws ec2 vps


  3. Travis

    September 30, 2012 at 2:25 am

    Amazing. Thanks.


  4. Rajendra

    October 9, 2012 at 10:12 pm

    Awesome trick my friend. just great.


  5. Niki

    March 16, 2013 at 1:29 pm

    You are the Man! Saved me from my client. Thank you very much!


  6. Mickeal Admal

    April 17, 2014 at 9:59 am

    Wow.. Man. Thanks. Quick and fast it was.


  7. Chris Tyler

    April 23, 2014 at 7:13 am

    Amazingly simple and one command reset. I lost all hope when I was unable to login. Thanks mate!


  8. Teri

    July 2, 2014 at 5:49 am



  9. Kruas

    September 5, 2014 at 5:40 am

    Super duper easy and solved biggest issue in one ENTER. Tanks


Don't hesitate. Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Check Also

How to Properly Set WordPress Redirect to HTTPS

Installing SSL is easy but making your WordPress site to adapt it and forget HTTP so, your…