Drupal 7: Reset User 1 Password quick and easy using Drush

There are many solutions out there to reset User 1's password in a Drupal 7 website. A really convenient way is to use Drush, to generate a one time login URL - no mails involved. The output would be directly on the console, and it is simple to just copy and paste it in a browser. 
The drush command is the following:
 
drush php-eval 'echo user_pass_reset_url(user_load(1));
 
and once logged in, the password can be easily changed in the user edit screen. 

Tags: 
Drupal Quick Tips, Drupal 7

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview http://tinyurl.com/8a8nxno

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x