0

I've a requirement to change admin password for drupal 7 sites which are over 100 and i would like to do it with drush. I know one method of doing it is updating user table with a shell script listing databases in a queue, but i want to achieve this with drush. Would be great if anyone can put me in some reference if they have any idea.

Cheers,

Swaroop.

1

Recover password with Drush

Drush offers several ways of recovering the administrator's password. Generate login-link

Drush can generate a one-time login link.

drush uli

Reset password

drush upwd --password="givememypasswordback" admin

(where "admin" is the user name)

For more info visit here

  • Challenge is we need to reset for more than 100 websites. Does alias help? – Swaroop Kundeti Jan 28 '15 at 12:40
  • for site in alias1 alias2 alias3 ; do drush "@$site" upwd --password="doyoureallywantthesamepasswordeverywhere" admin ; done – greg_1_anderson Jan 28 '15 at 18:13
  • drush @alias1,@alias2,@alias3 upwd --password="doyoureallywantthesamepasswordeverywhere" admin – greg_1_anderson Jan 28 '15 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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