[How To] reset Webmin password
|To reset the password for Webmin, you can follow these steps:
- Open a terminal or command prompt on the server where Webmin is installed.
-
Navigate to the Webmin installation directory. The default location is /usr/local/webmin.
cd /usr/local/webmin
- To change password run command:
- on RedHat distributions (i.e. Fedora, CentOS, Gentoo, etc.):
/usr/libexec/webmin/changepass.pl /etc/webmin admin newPassword
- on Debian distributions (i.e. Debian, Ubunto, etc.):
/usr/share/webmin/changepass.pl /etc/webmin admin newPassword
- on FreeBSD:
/usr/local/lib/webmin/changepass.pl /usr/local/etc/webmin admin newPassword
- on RedHat distributions (i.e. Fedora, CentOS, Gentoo, etc.):
- Login to Webmin with newPassword.
These steps assume that you have access to the server and the ability to run commands as the root user, otherwise login into system as root or become superuser.
To become root, run:
su -
or, for superuser:
sudo su -
Note: This is just an example, you should use a more complex and unique password for security reasons.
4 Comments
Hello
A ‘friend’ set up a hard drive for me using webmin windows shares in 2009. I have the http address but not the username or password for login to be able to access my files. What can I do?? thanks cp.
This works for me after restarting the webmin service
Thank you, it’s working well
Thank you for feedback.