# Is that possible to install a nexus chart with a given initial password?

**URL:** <https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962>\
**Category:** Sonatype Nexus Repository\
**Tags:** help\
**Created:** [November 18, 2019, 7:38am UTC](https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962 "2019-11-18T07:38:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rick](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@rick](https://community.sonatype.com/u/rick)\
**Post date:** [November 18, 2019, 7:38am UTC](https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962/1 "2019-11-18T07:38:33Z")

</div>

I want to setup my environment by an automatic script. For the nexus, I don’t know how to give to a specific password instead of a random one. Any tips are very appreciated.

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [November 18, 2019, 1:44pm UTC](https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962/2 "2019-11-18T13:44:40Z")

</div>

If you set this in sonatype-work/nexus3/etc/nexus.properties a random password will not be used, the old default password of “admin123” will be used instead:

```
nexus.security.randompassword=false
```

---

<div class="post-metadata">

**Author:** ![rick](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@rick](https://community.sonatype.com/u/rick)\
**Post date:** [November 19, 2019, 1:58am UTC](https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962/3 "2019-11-19T01:58:53Z")

</div>

Thanks for your quick response! I’ll try it.

---

<div class="post-metadata">

**Author:** ![rick](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@rick](https://community.sonatype.com/u/rick)\
**Post date:** [November 19, 2019, 6:36am UTC](https://community.sonatype.com/t/is-that-possible-to-install-a-nexus-chart-with-a-given-initial-password/2962/4 "2019-11-19T06:36:26Z")

</div>

I found another way to do that. It might be a trick way. But it works. Give it a environment variable `NEXUS_SECURITY_RANDOMPASSWORD` which value is `false`.

See also [nexus-public/StaticSecurityConfigurationSource.groovy at 26aa3a2b54ffe524a5e7df164d847e268b624d21 · sonatype/nexus-public · GitHub](https://github.com/sonatype/nexus-public/blob/26aa3a2b54ffe524a5e7df164d847e268b624d21/components/nexus-security/src/main/java/org/sonatype/nexus/security/config/StaticSecurityConfigurationSource.groovy#L54).
