# Permission denied when installing plugin

**URL:** <https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100>\
**Category:** Kibana\
**Created:** [November 15, 2019, 3:50pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100 "2019-11-15T15:50:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elaak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elaak/32/55014_2.png) [@Elaak](https://discuss.elastic.co/u/Elaak)\
**Post date:** [November 15, 2019, 3:50pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/1 "2019-11-15T15:50:14Z")

</div>

I have my own plugin that I want to install into a new ubuntu system. I have installed everything using standard settings.

When I run `bin/kibana-plugin install file://<zip-file-path>` I get the error:

```
Plugin installation was unsuccessful due to error "EACCES: permission denied, open '/usr/share/kibana/plugins/.plugin.installing/package.json'"

```

I have really tried to change permissions and everything, but nothing seems to be working. The permissions for my folder `/usr/share/kibana` folder is `drwxrwxr-x` and chown says: `user:kibana`.

When I run the `kibana-plugin install` command, which user/group are the commands performed using?

I rather not leave my elastic stack open by setting the kibana folder as writable for all users and groups, but am not sure what else I can do at this moment.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [November 18, 2019, 9:00pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/2 "2019-11-18T21:00:57Z")

</div>

You can try doing only the install as root and that way you won't have to make the kibana folder writable.

---

<div class="post-metadata">

**Author:** ![Elaak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elaak/32/55014_2.png) [@Elaak](https://discuss.elastic.co/u/Elaak)\
**Post date:** [November 19, 2019, 9:32am UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/3 "2019-11-19T09:32:34Z")

</div>

I could, but since I then have to add also the flag `--allow-root` this cannot be the intended way. There must surely be some other issues related to this.

Maybe a more general question to help could be what user is the kibana-plugin run as? My user or the `kibana` user that kibana created for me?

How will I be sure that kibana has the right access to load and use my installed plugin afterwards?

---

<div class="post-metadata">

**Author:** ![Elaak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elaak/32/55014_2.png) [@Elaak](https://discuss.elastic.co/u/Elaak)\
**Post date:** [December 5, 2019, 4:16pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/4 "2019-12-05T16:16:31Z")

</div>

Is there no other suggestions why I am getting this error?

Maybe a better idea to start would be what should be my permissions and owner in `unix` for my `/usr/share/kibana` folder and all its subfolders? I have setup my kibana and es as a systemctl service. Might be that I maybe wrongly changed some permissions?

This is the current permission for my `/usr/share/kibana/` folder:

```
drwxrwsr-x 12 kibana kibana 4096 Nov 29 15:12 kibana
```

---

<div class="post-metadata">

**Author:** ![Sincore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sincore/32/56357_2.png) [@Sincore](https://discuss.elastic.co/u/Sincore)\
**Post date:** [December 5, 2019, 9:17pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/5 "2019-12-05T21:17:03Z")

</div>

I had this problem. I found that if you ziped up the plugin in windows it would cause the error. But when I zipped up the plugin in Linux and then installed it worked perfect. It was very weird but it worked for me.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 2, 2020, 9:17pm UTC](https://discuss.elastic.co/t/permission-denied-when-installing-plugin/208100/6 "2020-01-02T21:17:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
