# Single Node Is Not Allowing To Set Built In Users

**URL:** <https://discuss.elastic.co/t/single-node-is-not-allowing-to-set-built-in-users/189457>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 9, 2019, 5:45am UTC](https://discuss.elastic.co/t/single-node-is-not-allowing-to-set-built-in-users/189457 "2019-07-09T05:45:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeniffer](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@Jeniffer](https://discuss.elastic.co/u/Jeniffer)\
**Post date:** [July 9, 2019, 5:45am UTC](https://discuss.elastic.co/t/single-node-is-not-allowing-to-set-built-in-users/189457/1 "2019-07-09T05:45:15Z")

</div>

Hey,  
I am having problems with my single node, I built elasticsearch on a test machine  
i started configuring the security,enabled xpach and discovery type to single node.  
When i try to set the built-in users i get:  
ERROR:Failed to connect to elasticsearch at [http://127.0.0.1:9200/\_security/\_authenticate?pretty](http://127.0.0.1:9200/_security/_authenticate?pretty). Is the url correct and elasticsearch running?  
so then i tried this:  
curl -X GET "127.0.0.1:9200"  
And got:  
"error":{"root\_cuase":[{"type":"security\_exception", "reason", "missing authenticatecatin credentialesfor REST requset [/] "header"{"www.authenticate": ""basic realm=/"security/" charset=\UTF-8"}}]"type":"security\_exception", "reason":"missimg authenticaion credentials for REST requset [/]. {"www.authenticate": ""basic realm=/"security/" charset=\UTF-8"}}, "status":401}  
Does anyone know whats my problem?  
When i tried to configure the passwords without the discovery.type single node it did allow me, but i need the discovery.type  
Thanks

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 9, 2019, 9:26am UTC](https://discuss.elastic.co/t/single-node-is-not-allowing-to-set-built-in-users/189457/2 "2019-07-09T09:26:30Z")

</div>

> [@Jeniffer](#):
>
> When i try to set the built-in users i get:  
> ERROR:Failed to connect to elasticsearch at [http://127.0.0.1:9200/\_security/\_authenticate?pretty](http://127.0.0.1:9200/_security/_authenticate?pretty). Is the url correct and elasticsearch running?

There should be another line before that error that tells you exactly what failed.

---

<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:** [August 6, 2019, 9:26am UTC](https://discuss.elastic.co/t/single-node-is-not-allowing-to-set-built-in-users/189457/3 "2019-08-06T09:26:31Z")

</div>

Closed on August 6, 2019, 9:26am UTC

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