According to http://drushcommands.com/drush-6x/user/user-password/ the command

drush user-password someuser --password="correct horse battery staple"

should change a user's password.

I am trying to change the password for user 1, but I get this error message:

-jailshell: !": event not found

I connect via ssh as root, try again, but get this error message:

-bash: !": event not found

Anyone know how I fix this? Using Drush 6.2.0. Thank you.

  • 1
    Any chance your actual password has an exclamation mark in it?
    – Clive
    Jan 18, 2016 at 14:00
  • Yes, both the current and the proposed new password. Thanks.
    – penname
    Jan 18, 2016 at 15:43
  • 2
    Try escaping it: --password="Exclaim\!"
    – Clive
    Jan 18, 2016 at 15:46
  • 1
    Yeah I forget what it's called but it's a 'history' command - it recalls previous typed commands
    – Clive
    Jan 19, 2016 at 16:20
  • 1
    !! Is 'last command'. !$ can move you into a folder you've just created such as mkdir newfolder; cd !$
    – Rick
    Feb 16, 2016 at 11:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.