Change user password using Drush

drush user-password admin --password="admin"

drush upwd admin --password="admin"

(Re)Set the password for the user account with the specified name.

Examples:
 drush user-password someuser       Set the password for the username someuser. @see xkcd.com/936 
 --password="correct horse battery                                                                
 staple"                                                                                          


Arguments:
 name                                      The name of the account to modify. 


Options:
 --password=<foo>                          The new password for the account. Required. 


Aliases: upwd

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.