# Elasticsearch password during installation

**URL:** https://discuss.elastic.co/t/elasticsearch-password-during-installation/353490
**Category:** Elastic Search
**Tags:** docker, elastic-app-search
**Created:** [February 16, 2024, 8:04pm UTC](https://discuss.elastic.co/t/elasticsearch-password-during-installation/353490 "2024-02-16T20:04:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SippingOnesAndZeros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sippingonesandzeros/32/128590_2.png) [@SippingOnesAndZeros](https://discuss.elastic.co/u/SippingOnesAndZeros)
#### Post date: [February 16, 2024, 8:04pm UTC](https://discuss.elastic.co/t/elasticsearch-password-during-installation/353490/1 "2024-02-16T20:04:41Z")

</div>

Hello,

I have a question related to the password setting in .env as in the example [Enterprise Search 8.x - Docker Compose example](https://discuss.elastic.co/t/enterprise-search-8-x-docker-compose-example/284811)

If the password is not provided, will there be any negative consequences other than manually setting the password for the elastic user after the install?

If the password has to be provided, how come it is not accepting it as an environment variable during the startup script of a K8? In which it will generate in the log to ask for generating manually?

---

<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: [March 15, 2024, 8:05pm UTC](https://discuss.elastic.co/t/elasticsearch-password-during-installation/353490/2 "2024-03-15T20:05:39Z")

</div>

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