# How to update java file permission for elasticsearch running on docker

**URL:** <https://discuss.elastic.co/t/how-to-update-java-file-permission-for-elasticsearch-running-on-docker/234869>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 29, 2020, 6:44am UTC](https://discuss.elastic.co/t/how-to-update-java-file-permission-for-elasticsearch-running-on-docker/234869 "2020-05-29T06:44:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravinder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravinder/32/69362_2.png) [@ravinder](https://discuss.elastic.co/u/ravinder)\
**Post date:** [May 29, 2020, 6:44am UTC](https://discuss.elastic.co/t/how-to-update-java-file-permission-for-elasticsearch-running-on-docker/234869/1 "2020-05-29T06:44:56Z")

</div>

Hi ,

I see below exception when posting a new elasticsearch template.

{  
"error": {  
"root\_cause": [  
{  
"type": "access\_control\_exception",  
"reason": "access denied ("java.io.FilePermission" "/app/elk/docker/dev/home\_elasticsearch/config/analysis/my\_synonyms.txt" "read")"  
}  
],  
"type": "access\_control\_exception",  
"reason": "access denied ("java.io.FilePermission" "/app/elk/docker/dev/home\_elasticsearch/config/analysis/my\_synonyms.txt" "read")"  
},  
"status": 500  
}

I tried the same without docker and it works after updating java.policy file for file permissions.

I am new to docker and feeling it difficult to update the java policy to add new elastic synonyms file.  
please help me with this

---

<div class="post-metadata">

**Author:** ![ravinder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravinder/32/69362_2.png) [@ravinder](https://discuss.elastic.co/u/ravinder)\
**Post date:** [June 11, 2020, 4:06am UTC](https://discuss.elastic.co/t/how-to-update-java-file-permission-for-elasticsearch-running-on-docker/234869/2 "2020-06-11T04:06:06Z")

</div>

I am surprised that none of elastic guys know solution on this.

---

<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 9, 2020, 4:06am UTC](https://discuss.elastic.co/t/how-to-update-java-file-permission-for-elasticsearch-running-on-docker/234869/3 "2020-07-09T04:06:08Z")

</div>

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