# Reset user password by Admin

**URL:** https://meta.discourse.org/t/reset-user-password-by-admin/56987
**Category:** Support
**Created:** [February 6, 2017, 4:41pm UTC](https://meta.discourse.org/t/reset-user-password-by-admin/56987 "2017-02-06T16:41:18Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [February 6, 2017, 6:37pm UTC](https://meta.discourse.org/t/reset-user-password-by-admin/56987/7 "2017-02-06T18:37:57Z")

</div>

First of all I would be very careful, and also backup your db.

```
ssh into your server
cd /var/discourse
./launcher enter app
rails c
u = User.find_by_email('email@test.com')
u.password='zKRR6vTZKvJAB84V9jdgeydS'
u.save!
ctrl+d to exit

```

I still think the user should figure out their email issues first though, so that they can just do a normal password reset, or change their email address for them.

---

_[View the full topic](https://meta.discourse.org/t/reset-user-password-by-admin/56987)._
