# How should I disable the security manager?

**URL:** <https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569>\
**Category:** Elasticsearch\
**Created:** [January 13, 2017, 8:55pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569 "2017-01-13T20:55:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kldavis4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kldavis4/32/14562_2.png) [@kldavis4](https://discuss.elastic.co/u/kldavis4)\
**Post date:** [January 13, 2017, 8:55pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569/1 "2017-01-13T20:55:56Z")

</div>

Hopefully a simple question...

Tried to disable security manager according to the javadoc in the [Security](https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/bootstrap/Security.java#L88) class.  
Tried setting env variables using ES\_JAVA\_OPTS with or without the es prefix.  
Tried configuring in elasticsearch.yml.

I also see a command line option '--security.manager.enabled'.

Note that I am running ES using the 5.1.1 docker image.

Thanks, Kelly

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 13, 2017, 9:59pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569/2 "2017-01-13T21:59:36Z")

</div>

You can not disable the security manager starting in version 5.0.0. I will fix the Javadocs to reflect this change.

Would you mind explaining why you would like to disable the security manager, perhaps I can help?

---

<div class="post-metadata">

**Author:** ![kldavis4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kldavis4/32/14562_2.png) [@kldavis4](https://discuss.elastic.co/u/kldavis4)\
**Post date:** [January 13, 2017, 10:26pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569/3 "2017-01-13T22:26:42Z")

</div>

Hey, thanks for your reply.. Please see this other question for an explanation: [https://discuss.elastic.co/t/how-to-customize-plugin-security-policy-for-custom-realm/](https://discuss.elastic.co/t/how-to-customize-plugin-security-policy-for-custom-realm/) as to why I wanted to turn it off. Looks like I do have a resolution for that issue, so don't need to disable it now. I didn't spend a lot of time searching for an answer to this question, so it would be nice if the docs were real explicit that it was not possible. Thanks again! Kelly

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 13, 2017, 11:17pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569/4 "2017-01-13T23:17:49Z")

</div>

> [@kldavis4](#):
>
> Hey, thanks for your reply.. Please see this other question for an explanation: [https://discuss.elastic.co/t/how-to-customize-plugin-security-policy-for-custom-realm/](https://discuss.elastic.co/t/how-to-customize-plugin-security-policy-for-custom-realm/) as to why I wanted to turn it off. Looks like I do have a resolution for that issue, so don't need to disable it now.

Okay, good, I was hoping that it would be something like this and we could just point you in the right direction. I see that @jaymode helped you there, and that's great.

> [@kldavis4](#):
>
> I didn't spend a lot of time searching for an answer to this question, so it would be nice if the docs were real explicit that it was not possible.

I pushed a commit earlier this evening removing the language from the Javadocs saying that disabling the security manager is possible.

> [@kldavis4](#):
>
> Thanks again!

You're very welcome.

---

<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:** [February 10, 2017, 11:18pm UTC](https://discuss.elastic.co/t/how-should-i-disable-the-security-manager/71569/5 "2017-02-10T23:18:04Z")

</div>

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