Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

How do you Drush reset an administrator password after forgetting the pass and losing its email?

share|improve this question

2 Answers 2

up vote 12 down vote accepted

You can execute drush uli, this will generate a one time login link. By default it provides one-time login link for administrator.

If you execute drush uli some-username, this will generate one time login link for that user.

share|improve this answer

$ drush help user-password (Re)Set the password for the user account with the specified name.

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

Arguments: name The name of the account to modify.

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

Aliases: upwd

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.