Skip to content

Instantly share code, notes, and snippets.

@waako
Last active December 23, 2015 08:19
Show Gist options
  • Save waako/6606788 to your computer and use it in GitHub Desktop.
Save waako/6606788 to your computer and use it in GitHub Desktop.
bulk update user passwords via drush and a variable
# This should change the passwords for user1, user2 and user3 and set it to password
for i in user1 user2 user3; do drush upwd $i --password="password"; done
# If you need to find out all the usernames from a sequence of UIDs
for i in `seq 2 20`; do drush upwd $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment