# Should all plugins be cloned as the \`discourse\` user?

**URL:** https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305
**Category:** Development
**Created:** [March 16, 2017, 7:47pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305 "2017-03-16T19:47:40Z")
**Posts on this page:** 5
**Page:** 1

<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: [March 16, 2017, 7:47pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305/1 "2017-03-16T19:47:40Z")

</div>

Is that true for all plugins, or just this one?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 16, 2017, 7:51pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305/2 "2017-03-16T19:51:36Z")

</div>

All plugins should clone as the user discourse, otherwise if the plugin installs gems it can have permission issues.

---

<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: [March 16, 2017, 7:55pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305/3 "2017-03-16T19:55:38Z")

</div>

> [@Discourse Assign](https://meta.discourse.org/t/discourse-assign/58044/25):
>
> All plugins should clone as the user discourse

I totally understand that, now that you say it, but none of the plugin install instructions I have ever seen say this. Take [install a plugin](https://meta.discourse.org/t/install-a-plugin/19157), for example.

Is that true for docker\_manager too?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 16, 2017, 8:00pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305/4 "2017-03-16T20:00:27Z")

</div>

Yes this is true of everything, we should follow one pattern, PR welcome to clean stuff up.

---

<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: [March 16, 2017, 8:03pm UTC](https://meta.discourse.org/t/should-all-plugins-be-cloned-as-the-discourse-user/59305/5 "2017-03-16T20:03:41Z")

</div>

OK. The [canonical how to install a plugin topic](https://meta.discourse.org/t/install-a-plugin/19157) (@erlend_sh you want to make it a wiki) and the sample yml files in discourse\_docker would be good places to start.

I’ll aim to update discourse\_docker stuff next time I have reason to touch it.
