List of blog posts tagged as "Drupal".
I deal with Drupal sites often, and one of the most often recurring issues is a forgotten/lost password for the admin account. Sometimes, the site isn't yours, and you simply were told the wrong info to log into the site but you have FTP access. Other times, you simply don't want to go through the hassle of sending yourself an e-mail, clicking a reset link, and editing your password through the profile settings page. There has to be an easier, faster way, right? Well, the answer is here.
The best way to deal with this is to make a script that does every bit of the password reset all in one go. The downside to this script is it is incredibly insecure. You will want to name it something funny random, like gudgoin.php or idungiveafk.php, place it in the root directory of the site, and delete it from the server right after using it.