# First account has no access to admin panel

**URL:** https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854
**Category:** Support
**Created:** [May 26, 2016, 6:19pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854 "2016-05-26T18:19:38Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mholt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mholt/32/120935_2.png) [@mholt](https://meta.discourse.org/u/mholt)
#### Post date: [May 26, 2016, 6:19pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/1 "2016-05-26T18:19:38Z")

</div>

I just installed Discourse on DigitalOcean using the one-click apps and went through the setup over SSH. Everything checks out but my first user account that I created on the web site (using the same email address provided over SSH - I checked 3 times) was not an admin account. In other words, I have no access to the admin panel. Any tips? 🙂

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 26, 2016, 6:23pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/2 "2016-05-26T18:23:57Z")

</div>

SSH into the server

```plaintext
cd /var/discourse
./launcher enter app
u = User.find_by_email('your_email');
u.admin = true;
u.save

```

---

<div class="post-metadata">

### Author: ![mholt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mholt/32/120935_2.png) [@mholt](https://meta.discourse.org/u/mholt)
#### Post date: [May 26, 2016, 6:29pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/3 "2016-05-26T18:29:46Z")

</div>

> [@cpradio](#):
>
> u = User.find\_by\_email(‘your\_email’);

Thanks - it works up to this point, which line gives:

> bash: syntax error near unexpected token `(’

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [May 26, 2016, 7:09pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/4 "2016-05-26T19:09:42Z")

</div>

You need to start the Rails console after entering the container. This is it:

```
cd /var/discourse
./launcher enter app
rails c
u = User.find_by_email('your_email');
u.admin = true;
u.save

```

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 26, 2016, 7:14pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/5 "2016-05-26T19:14:20Z")

</div>

oops, I forgot about the rails console.

---

<div class="post-metadata">

### Author: ![mholt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mholt/32/120935_2.png) [@mholt](https://meta.discourse.org/u/mholt)
#### Post date: [May 26, 2016, 7:38pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/6 "2016-05-26T19:38:53Z")

</div>

Thanks! I figure this is a bug with Discourse since I started over from scratch and entered my email in the setup with all lowercase and it worked. Will open a new thread for that.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 26, 2016, 8:04pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/7 "2016-05-26T20:04:25Z")

</div>

No known bugs with this that I’ve seen. Just make sure the email matches what you entered at bootstrap time. It is not case sensitive.

---

<div class="post-metadata">

### Author: ![mholt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mholt/32/120935_2.png) [@mholt](https://meta.discourse.org/u/mholt)
#### Post date: [May 26, 2016, 8:05pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/8 "2016-05-26T20:05:22Z")

</div>

I think it is; I repeated the process exactly and got it to work with a lowercase email. [Here’s a report.](https://meta.discourse.org/t/email-address-is-case-sensitive-in-digitalocean-setup/44866)

Discourse is great, by the way! Thanks for making it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 26, 2016, 8:07pm UTC](https://meta.discourse.org/t/first-account-has-no-access-to-admin-panel/44854/9 "2016-05-26T20:07:13Z")

</div>


