Reset Password for Webmin

This happens to everyone at one time or another. You go on vacation and when you come back, you forget all of the passwords on your computer. Well, I only forgot one password: the login for Webmin.
I failed logging in several times and then Webmin blocked my IP. Getting localhost blocked isn’t a good thing to see. So I searched the Internet for a way to reset the password and I found this procedure:

  1. Login to your computer as root.
  2. If you are running a RedHat distribution (i.e. Fedora, CentOS, Gentoo), enter the following command:/usr/libexec/webmin/ /etc/webmin username password
    If you are running a Debian distribution, enter the following command:
    /usr/share/webmin/ /etc/webmin username password
  3. Login to Webmin with your reset password.

10 thoughts on “Reset Password for Webmin”

  1. Hey thanks, helped me a bunch on Fedora 16.
    But wanted to inform you of an error.
    Gentoo is in no way a Red Hat derivative. In no way..
    Gentoo was made from scratch, and is completely different, as they use ports like a BSD distro, similar to Arch Linux, and uses a source compiler to install packages and not RPM’s like Red Hat distros, nor does it even use YUM. So you got that one backwards bud. So you should fix that.. Because it is quite misleading…
    Anyway thanks though! it helped me when I forgot my Webmin password on Fedora.
    Now that I know this though I feel like I should secure that file more, considering its so easy to change a password… Doesn’t seem like the safest method, as it wouldn’t be hard for someone to access it remotely unless your apache install was 100% secure..

  2. Howdy would you mind letting me know which
    hosting company you’re using? I’ve loaded your blog in 3
    different web browsers and I must say this blog loads a lot faster then most.
    Can you recommend a good hosting provider at a reasonable price?
    Kudos, I appreciate it!

    • 1&1 ( is a good web host. I’ve been with them over 5 years now and they are constantly improving their service.

  3. Great post. I was checking constantly this blog and I’m impressed!
    Very helpful info particularly the last part 🙂 I care
    for such information a lot. I was seeking this certain information
    for a long time. Thank you and best of luck.

  4. good job, im new to debian servers and webmin install for server, but you save me lot of time ,only found sh*t 30 minutes, your site is good, keep it up and thanks for adding “Debian” Tutorial too. Best regards


Leave a Comment