# After Installing X-pack security in elasticsearch 7.2 .My default password "changeme" not working

**URL:** <https://discuss.elastic.co/t/after-installing-x-pack-security-in-elasticsearch-7-2-my-default-password-changeme-not-working/212930>\
**Category:** Elasticsearch\
**Created:** [December 24, 2019, 8:46am UTC](https://discuss.elastic.co/t/after-installing-x-pack-security-in-elasticsearch-7-2-my-default-password-changeme-not-working/212930 "2019-12-24T08:46:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viveknagar](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@viveknagar](https://discuss.elastic.co/u/viveknagar)\
**Post date:** [December 24, 2019, 8:46am UTC](https://discuss.elastic.co/t/after-installing-x-pack-security-in-elasticsearch-7-2-my-default-password-changeme-not-working/212930/1 "2019-12-24T08:46:38Z")

</div>

Hello,  
I am using elastic search 7.2.0. I have installed xpack successfully from the below configurations. But I am unable to use my default password "changeme" .Or is there any way to set a default password in configmap.yml?  
Here is my config file

```auto
apiVersion: v1
kind: ConfigMap
metadata:
  name: es-config
  namespace: kube-system
data:
  elasticsearch.yml: |
    cluster.name: my-elastic-cluster
    network.host: "0.0.0.0"
    path.repo: ["/usr/share/elasticsearch/data/"]
    xpack.security.enabled: true
    xpack.security.authc.accept_default_password: true

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 24, 2019, 10:57am UTC](https://discuss.elastic.co/t/after-installing-x-pack-security-in-elasticsearch-7-2-my-default-password-changeme-not-working/212930/2 "2019-12-24T10:57:13Z")

</div>

In case it helps, here is how I'm setting that with docker compose ( `docker-compose.yml`):

```auto
---
version: '3'
services:

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
    environment:
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
      - ELASTIC_PASSWORD=$ELASTIC_PASSWORD
      - xpack.security.enabled=$ELASTIC_SECURITY
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200
    networks: ['stack']

  kibana:
    image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION
    environment:
      - ELASTICSEARCH_USERNAME=elastic
      - ELASTICSEARCH_PASSWORD=$ELASTIC_PASSWORD
    ports: ['5601:5601']
    networks: ['stack']
    links: ['elasticsearch']
    depends_on: ['elasticsearch']

networks:
  stack: {}

```

`.env` file is:

```auto
ELASTIC_VERSION=7.5.1
ELASTIC_SECURITY=true
ELASTIC_PASSWORD=changeme

```

You might have similar option in K8S (I did not check though).

---

<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:** [January 21, 2020, 10:57am UTC](https://discuss.elastic.co/t/after-installing-x-pack-security-in-elasticsearch-7-2-my-default-password-changeme-not-working/212930/3 "2020-01-21T10:57:29Z")

</div>

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