Skip to main content

How can I change a user's Drupal password with Drush?

Sometimes you just need to download a website at your localhost environment and work on it until you update the live website. It's quite common that you forgot to ask about the admin's password or you just want to update and test other user accounts (if you are not using masquerade module). Here comes drush to the rescue for once more! Simple add this drush upwd USERNAME --password="SOMEPASSWORD" or drush user-password USERNAME --password="SOMEPASSWORD" and you are ready.
drush

Latest Articles

VSCode Drupal Coding Standards Setup (From Scratch) admin_pixelthi… Mon, 12/22/2025 - 16:01 VSCode Drupal Coding Standards Setup (From Scratch)

VSCode Drupal Coding Standards Setup (From Scratch)

vscode
Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file admin_pixelthi… Sun, 12/01/2024 - 16:49 Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file

Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file

composer
Controlling ckeditor styling options with hook_editor_js_settings_alter admin_pixelthi… Thu, 05/16/2024 - 10:49 Controlling ckeditor styling options with hook_editor_js_settings_alter

Controlling ckeditor styling options with hook_editor_js_settings_alter

php hook hook_editor_js_settings_alter hook_field_widget_single_[WIDGET_TYPE]_form_alter