# \[kibana 7.13\]can not support the --allow-root when using the kibana-keystore

**URL:** <https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207>\
**Category:** Kibana\
**Created:** [July 8, 2021, 4:09pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207 "2021-07-08T16:09:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry\_010](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@harry\_010](https://discuss.elastic.co/u/harry_010)\
**Post date:** [July 8, 2021, 4:09pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/1 "2021-07-08T16:09:30Z")

</div>

when I used the following command to create the Keystore, I got the following error.

/usr/share/kibana/bin/kibana-keystore create --allow-root  
kibana.keystore located in the data folder is deprecated. Future versions will use the config folder.  
**error: unknown option '--allow-root'**

who can help me?  
thanks

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 5:41pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/2 "2021-07-08T17:41:37Z")

</div>

@harry_010 where have you found `--allow-root` as an available param? I don't think that one exists in that CLI.

Cheers

---

<div class="post-metadata">

**Author:** ![harry\_010](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@harry\_010](https://discuss.elastic.co/u/harry_010)\
**Post date:** [July 8, 2021, 5:54pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/3 "2021-07-08T17:54:43Z")

</div>

we are using this option for a long time. the last version is 7.9. this works well.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 5:58pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/4 "2021-07-08T17:58:12Z")

</div>

@harry_010 I can't find that argument available for 7.13 It would be better to not run this as root.

Cheers

---

<div class="post-metadata">

**Author:** ![harry\_010](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@harry\_010](https://discuss.elastic.co/u/harry_010)\
**Post date:** [July 8, 2021, 6:00pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/5 "2021-07-08T18:00:05Z")

</div>

thanks. another problem.  
the cli still support the creates parameter? you know I want to put the keystore to the data directory.  
/usr/share/kibana/bin/kibana-keystore create --allow-root creates=/var/lib/kibana/kibana.keystore

thanks

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 6:07pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/6 "2021-07-08T18:07:23Z")

</div>

The keystore can only be created in `data` or in the `config` folder. However you can configure the location of the config folder wherever you want by setting an ENV variable [Configure Kibana | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/settings.html#settings).

If you want to stop the warning, you can move your currently located keystore from the data folder into your config folder.

Cheers

---

<div class="post-metadata">

**Author:** ![harry\_010](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@harry\_010](https://discuss.elastic.co/u/harry_010)\
**Post date:** [July 8, 2021, 6:08pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/7 "2021-07-08T18:08:26Z")

</div>

thanks. let me try.

---

<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:** [August 5, 2021, 6:09pm UTC](https://discuss.elastic.co/t/kibana-7-13-can-not-support-the-allow-root-when-using-the-kibana-keystore/278207/8 "2021-08-05T18:09:23Z")

</div>

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