Is it possible to change a user's Drupal password with Drush?

markdorison picture markdorison · Feb 13, 2011 · Viewed 7.3k times · Source

Is it possible to change a user's Drupal password from the command-line with Drush?

Answer

jhedstrom picture jhedstrom · Feb 14, 2011

If you're running Drupal 7, using md5 won't work as passwords are salted. However, if you have drush 4.x, you can use the user-password command:

drush user-password someuser --password="gr3@tP@$s"