# 如何更改用户密码或电子邮件？DigitalOcean 托管

**URL:** https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054
**Category:** Support
**Created:** [2018年七月11日 07:04 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054 "2018-07-11T07:04:21Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nee85](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nee85](https://meta.discourse.org/u/nee85)
#### Post date: [2018年七月11日 07:04 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/1 "2018-07-11T07:04:21Z")

</div>

Hello,

I have a User who forgot their password to the account.

I want to help them by changing their password but I have no option. I am the Admin. Also, the email they used for their account was one of those temporary disposable email accounts so we can not send a confirmation link.

I am not good with terminals or server issue so a step by step guide would be nice.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月11日 08:00 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/2 "2018-07-11T08:00:20Z")

</div>

Simply go to their profile and edit the email then send an email verification link.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年七月11日 09:23 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/3 "2018-07-11T09:23:48Z")

</div>

```bash
cd /var/discourse
./launcher enter app
rake admin:create

```

This will let you set their password (and not make them an admin).

But doing what @itsbhanusharma recomended is easier.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月11日 13:37 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/4 "2018-07-11T13:37:05Z")

</div>

Wouldn’t that create an admin account instead of resetting the email of a local user?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年七月11日 13:42 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/5 "2018-07-11T13:42:02Z")

</div>

> [@pfaffman](#):
>
> This will let you set their password **(and not make them an admin)**.

```plaintext
root@abednego-web-only:/var/www/discourse# rake admin:create
Email: jay@literatecomputing.com
User with this email already exists! Do you want to reset the password for this email? (Y/n)   
Password:  
Repeat password:  

Ensuring account is active!

Account updated successfully!
Do you want to grant Admin privileges to this account? (Y/n) n

```

It asks if you want to make them an admin.

---

<div class="post-metadata">

### Author: ![nee85](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nee85](https://meta.discourse.org/u/nee85)
#### Post date: [2018年七月17日 05:02 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/6 "2018-07-17T05:02:11Z")

</div>

Where do i type this information? I have the site hosted on Digital Ocean

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年七月17日 05:28 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/7 "2018-07-17T05:28:00Z")

</div>

Log in to your droplet via the web console or ssh. If you use the one click install you’ll have to figure out how to do the script.

---

<div class="post-metadata">

### Author: ![nee85](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nee85](https://meta.discourse.org/u/nee85)
#### Post date: [2018年七月17日 06:04 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/8 "2018-07-17T06:04:16Z")

</div>

I followed and it worked somewhat. I am able to change the password! However, i get this message when i log in.

“You can’t log in yet. We previously sent an activation email to you at `THROWaway@email.com`. Please follow the instructions in that email to activate your account.”

when i type in the new email address, i get “You are not permitted to view the requested resource.”

how do i avoid that old email confirm link? i do not have access to that.

---

<div class="post-metadata">

### Author: ![anon89147131](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@anon89147131](https://meta.discourse.org/u/anon89147131)
#### Post date: [2020年十月30日 13:40 UTC](https://meta.discourse.org/t/how-do-i-change-a-user-password-or-email-digitalocean-hosting/92054/19 "2020-10-30T13:40:50Z")

</div>

抱歉再次大幅顶帖——非常感谢，我无比感激您的帮助，您无法想象这对我有多大帮助。祝您平安，度过美好的一天！
