Last active
December 23, 2015 08:19
-
-
Save waako/6606788 to your computer and use it in GitHub Desktop.
bulk update user passwords via drush and a variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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