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:
- Login to your computer as root.
- If you are running a RedHat distribution (i.e. Fedora, CentOS, Gentoo), enter the following command:/usr/libexec/webmin/changepass.pl /etc/webmin username password
If you are running a Debian distribution, enter the following command:
/usr/share/webmin/changepass.pl /etc/webmin username password
- Login to Webmin with your reset password.
Change your ip address with proxys. Than check it with this ip locator: http://www.ip-adress.com
If the ip is another and ip-adress.com doesnt show your house from the sky you did it 😉
Its amazing how many smart people there are in the world. 🙂 I’ll have to try that solution.
In my Ubuntu LTS (Debian based) the path is /usr/local/webmin/changepass.pl.
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..
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 (www.1and1.com) is a good web host. I’ve been with them over 5 years now and they are constantly improving their service.
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.
I savour, cause I discovered exactly what I used to be having a look for.
You have ended my 4 day long hunt! God Bless you man. Have a nice
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