Breaking News
Home / Webmaster / Build Website / How to reset Webmin Root Password?

How to reset Webmin Root Password?

Webmin Password ResetAt 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 order to change/reset the password we need to run a  that is provided with webmin by running it from the shell terminal on the server it self.

So logon to the server via ssh and sudo as root user.

If you execute the script the following out is displayed.

[root@livrona webmin]# /usr/libexec/webmin/
usage: <config-dir> <login> <password>

This program allows you to change the password of a user in the Webmin
password file. For example, to change the password of the admin user
to foo, you would run: /etc/webmin admin foo
This assumes that /etc/webmin is the Webmin configuration directory.

So let’s say that in order to change the password of user root to changeme we would execute the following.

 [root@livrona webmin]# /usr/libexec/webmin/ /etc/webmin root changeme
Updated password of Webmin user root
[root@livrona webmin]#

Now go back to browser and try to login with the new password, it should work.

If the given user does not exist in webmin, it would say that the user does not exist and list out all the users in the webmin system.

[root@livrona webmin]# /usr/libexec/webmin/ /etc/webmin admin password
The Webmin user admin does not exist
The users on your system are: root


Check Also

What is the best day to blog by PageViews?

Pageviews is a very important factor directly defining the traffic a website receives. The higher …

Advertisment ad adsense adlogger