# After resetting admin password, other password change wont be saved in Docker solution

**URL:** <https://forum.opensearch.org/t/after-resetting-admin-password-other-password-change-wont-be-saved-in-docker-solution/2758>\
**Category:** Security\
**Created:** [May 8, 2020, 10:13pm UTC](https://forum.opensearch.org/t/after-resetting-admin-password-other-password-change-wont-be-saved-in-docker-solution/2758 "2020-05-08T22:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franckiboy](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/franckiboy/32/603_2.png) [@Franckiboy](https://forum.opensearch.org/u/Franckiboy)\
**Post date:** [May 8, 2020, 10:13pm UTC](https://forum.opensearch.org/t/after-resetting-admin-password-other-password-change-wont-be-saved-in-docker-solution/2758/1 "2020-05-08T22:13:58Z")

</div>

I followed the doc to modify the admin password . I use the docker compose solution.

> **[Change your Admin Passwords in Open Distro for Elasticsearch | Amazon Web...](https://aws.amazon.com/blogs/opensource/change-passwords-open-distro-for-elasticsearch/)**
>
> 中文版 – Open Distro for Elasticsearch ships with an advanced security plugin. The plugin comes pre-configured with a number of different users and default passwords for them – of course, you will want to change those defaults! Passwords for...

Since we replace the internal\_users.yml in the docker-compose configuration, each time we restart our containers, we loose the password change made with the Kibana interface. For example, since the logstash user hash is present il the internal\_users.yml I presume It force the old password each time.

Is there a solution on docker, to reset the admin password and keep the possibility to modify user from the Kibana interface?

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [April 30, 2021, 11:29am UTC](https://forum.opensearch.org/t/after-resetting-admin-password-other-password-change-wont-be-saved-in-docker-solution/2758/2 "2021-04-30T11:29:11Z")

</div>

@Franckiboy Did you find the solution to this?

I run docker-compose locally, and create volume for the ES data. This way if you restart it, the data and therefore security index is already there and doesn’t need to initialise again. So previous settings are preserved.  
If you delete the volumes (and ES data) then the index will be initialised again using config file provided.  
Hope this helps
