# Securityconfig.sh changes does not take effect

**URL:** <https://forum.opensearch.org/t/securityconfig-sh-changes-does-not-take-effect/8071>\
**Category:** Security\
**Created:** [December 17, 2021, 2:23pm UTC](https://forum.opensearch.org/t/securityconfig-sh-changes-does-not-take-effect/8071 "2021-12-17T14:23:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![italosilva](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@italosilva](https://forum.opensearch.org/u/italosilva)\
**Post date:** [December 17, 2021, 2:23pm UTC](https://forum.opensearch.org/t/securityconfig-sh-changes-does-not-take-effect/8071/1 "2021-12-17T14:23:22Z")

</div>

Hello everyone,

I’ve tried to modify the internal\_users.yml file to update the default user’s “admin” password. I’ve generated the new password through hash.sh and put it into internal\_users.yml, but the updates doesn’t take effect when i execute the securityconfig.sh. I’ve tried the following commands:

```auto
./securityadmin.sh -cd ../securityconfig/ -icl -nhnv \
  -cacert ../../../config/root-ca.pem \
  -cert ../../../config/kirk.pem \
  -key ../../../config/kirk-key.pem

```

and

```auto
./securityadmin.sh -f ../securityconfig/internal_users.yml \
  -t internalusers \
  -icl \
  -nhnv \
  -cacert ../../../config/root-ca.pem \
  -cert ../../../config/kirk.pem \
  -key ../../../config/kirk-key.pem

```

None of them seems to work. I’ve tried also to restart the two application (Opensearch and Opensearch-Dashboards), but without success. Any idea about what’s going on?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [December 17, 2021, 2:39pm UTC](https://forum.opensearch.org/t/securityconfig-sh-changes-does-not-take-effect/8071/2 "2021-12-17T14:39:54Z")

</div>

@italosilva Could you share the output of both commands?

---

<div class="post-metadata">

**Author:** ![italosilva](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@italosilva](https://forum.opensearch.org/u/italosilva)\
**Post date:** [December 17, 2021, 3:18pm UTC](https://forum.opensearch.org/t/securityconfig-sh-changes-does-not-take-effect/8071/3 "2021-12-17T15:18:27Z")

</div>

Solved!

I have the old Opendistro installed on the server. When i was executing the securityadmin.sh, the program was accessing the 9300 port, where this old version was listening. So the modifications i was performing were changing the other program. using -p 9301 option solved my problem.

Thanks, @pablo
