# How to change .security-6 index to read-write

**URL:** https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [June 15, 2020, 1:07pm UTC](https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141 "2020-06-15T13:07:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cgricb](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@cgricb](https://discuss.elastic.co/u/cgricb)
#### Post date: [June 15, 2020, 1:07pm UTC](https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141/1 "2020-06-15T13:07:14Z")

</div>

My ES nodes were out of space and ES decided to take all indices read-only. After i ve added space and altered all indices to read-write i was successfull. But i could not alter the .security-6 index to read-write. Can you please show me a way how to do it without disabling the security.

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "action [indices:admin/settings/update] is unauthorized for user [admin]"
      }
    ],
    "type": "security_exception",
    "reason": "action [indices:admin/settings/update] is unauthorized for user [admin]"
  },
  "status": 403
}

```

---

<div class="post-metadata">

### Author: ![cgricb](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@cgricb](https://discuss.elastic.co/u/cgricb)
#### Post date: [June 19, 2020, 7:49am UTC](https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141/2 "2020-06-19T07:49:55Z")

</div>

I can not even delete it

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "action [indices:admin/delete] is unauthorized for user [root]"
      }
    ],
    "type": "security_exception",
    "reason": "action [indices:admin/delete] is unauthorized for user [root]"
  },
  "status": 403
}

```

---

<div class="post-metadata">

### Author: ![cgricb](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@cgricb](https://discuss.elastic.co/u/cgricb)
#### Post date: [June 23, 2020, 8:29am UTC](https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141/3 "2020-06-23T08:29:12Z")

</div>

I ve changed the , file based users role to superuser and could altered the special indexes. If you do not use filebased users you should create one to solve this issue.

---

<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: [July 21, 2020, 8:29am UTC](https://discuss.elastic.co/t/how-to-change-security-6-index-to-read-write/237141/4 "2020-07-21T08:29:23Z")

</div>

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