# Changing an admin email address

**URL:** https://meta.discourse.org/t/changing-an-admin-email-address/182596
**Category:** Self-hosting
**Created:** [March 9, 2021, 6:37am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596 "2021-03-09T06:37:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![aaron.n.w](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aaron.n.w](https://meta.discourse.org/u/aaron.n.w)
#### Post date: [March 9, 2021, 6:37am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/1 "2021-03-09T06:37:28Z")

</div>

After installing discourse and the email service the verification emails are working on new users but I can’t update the admin user. It’s set as the default example address. When I go to the user settings and change the email address it says the verification email was sent. But I never receive the email.

---

<div class="post-metadata">

### Author: ![aaron.n.w](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aaron.n.w](https://meta.discourse.org/u/aaron.n.w)
#### Post date: [March 12, 2021, 12:29am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/2 "2021-03-12T00:29:41Z")

</div>

This is an urgent security flaw. I cannot change the default root password without an email verification! I there another way around this?

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [March 12, 2021, 12:38am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/3 "2021-03-12T00:38:16Z")

</div>

This may be helpful:

> [@Change staff email address from console](https://meta.discourse.org/t/change-staff-email-address-from-console/42062):
>
> bookmark This guide describes how to change a staff member’s email address from the console using the Rails console. It applies to situations where an administrator needs to update an email without confirmation from the old address. person_raising_hand Required user level: System Administrator warning Console access required In Discourse, for enhanced security, staff members must confirm changes to their email addresses from both the new and old email addresses. However, this creates…

---

<div class="post-metadata">

### Author: ![aaron.n.w](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aaron.n.w](https://meta.discourse.org/u/aaron.n.w)
#### Post date: [March 18, 2021, 2:15am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/4 "2021-03-18T02:15:15Z")

</div>

Thanks for this but when I type ‘rails c’ I get ‘command not found’. There are lots of ruby-related folders. Please give further instructions as I am a bit of a newbie at this.

---

<div class="post-metadata">

### Author: ![aaron.n.w](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aaron.n.w](https://meta.discourse.org/u/aaron.n.w)
#### Post date: [March 18, 2021, 2:16am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/5 "2021-03-18T02:16:37Z")

</div>

Please note I am running it in a docker container.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [March 18, 2021, 2:20am UTC](https://meta.discourse.org/t/changing-an-admin-email-address/182596/6 "2021-03-18T02:20:38Z")

</div>

Sounds like you are not inside the app container?

```
cd /var/discourse

./launcher enter app

rails c

```
