# Issue setting up minimal security for elasticsearch

**URL:** <https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [August 3, 2021, 3:31pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341 "2021-08-03T15:31:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aztal-Samoht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aztal-samoht/32/92485_2.png) [@Aztal-Samoht](https://discuss.elastic.co/u/Aztal-Samoht)\
**Post date:** [August 3, 2021, 3:31pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341/1 "2021-08-03T15:31:15Z")

</div>

I have been following the instruction for setting up the minimal security features on ELK stack and keep running into the same problem.

when I try to run the command

```auto
./kibana-keystore.bat add elasticsearch.password

```

I get the message:

```auto
Enter value for elasticsearch.password: **********

C:\Users\thatG\Downloads\ELK\kibana-7.13.4-windows-x86_64\src\cli_keystore\utils\prompt.js:76
            output.cursorTo(questionPrompt.length);
                   ^
TypeError: output.cursorTo is not a function
    at Socket.<anonymous> (C:\Users\thatG\Downloads\ELK\kibana-7.13.4-windows-x86_64\src\cli_keystore\utils\prompt.js:76:20)
    at Socket.emit (events.js:387:35)
    at addChunk (internal/streams/readable.js:290:12)
    at readableAddChunk (internal/streams/readable.js:265:9)
    at Socket.Readable.push (internal/streams/readable.js:204:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

```

has anyone else run into this issue/know a fix?

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [August 4, 2021, 7:30pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341/2 "2021-08-04T19:30:38Z")

</div>

Hello,

I usually use [Built-in users | Elasticsearch Guide [7.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html)  
in elasticsearch to set up passwords for built in users.

Do you get the same error if you try it in es directory?

cc @Marius_Dragomir

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Aztal-Samoht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aztal-samoht/32/92485_2.png) [@Aztal-Samoht](https://discuss.elastic.co/u/Aztal-Samoht)\
**Post date:** [August 5, 2021, 2:57pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341/3 "2021-08-05T14:57:55Z")

</div>

Kibana does not properly start at the moment so I cannot try the built in users.  
If I comment out the security lines from both YAML files it begins to work properly w/o security.  
I will try that command in the ES path. I had not yet because the setup guide on the website told me:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bfdd5736019b8b53cb158cd3bd0565aa37bc04b2.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 5, 2021, 3:05pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341/4 "2021-08-05T15:05:52Z")

</div>

I tried running them directly from the bin folder and nothing failed. Are you using command prompt or Powershell?

---

<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:** [September 2, 2021, 3:06pm UTC](https://discuss.elastic.co/t/issue-setting-up-minimal-security-for-elasticsearch/280341/5 "2021-09-02T15:06:30Z")

</div>

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