How to reset your super admin password in Joomla

Although both of these situations might have been avoided if you take precautionary measures, there are a couple of things you can do to recover your lost or compromised super admin password.

Login to phpMyAdmin, select your database and click on the table jos_users.

Select the super admin user and click on edit.

In row password, select MD5 from the dropdown list and then insert your new password in the field value. Then click on Go.

Now you can login with your new password.

Go to plugins/authentication/joomla/joomla.php and modify this line:


if ( $crypt == $testcrypt) {

to


if ( true /* $crypt == $testcrypt */ ) {

Now you can login to backend with any password. Then go to User Manager, reset your password and undo the modification in the above file.

Take necessary measures so that you don't forget your super admin password again. Also, read this tutorial and this tutorial to find out what you can do with the .htaccess file and the php.ini file to enhance your website security.


Subscribe to our Blog
Subscribe to this content and receive updates directly in your inbox.
Name
Email

This website uses cookies so that we can provide you with the best user experience. By clicking "continue" you agree to cookies being used in accordance with our Cookies Policy.

Search