# Setting Up Users

**URL:** <https://discuss.elastic.co/t/setting-up-users/188277>\
**Category:** Elasticsearch\
**Created:** [July 1, 2019, 9:46am UTC](https://discuss.elastic.co/t/setting-up-users/188277 "2019-07-01T09:46:26Z")\
**Posts on this page:** 4\
**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 1, 2019, 9:46am UTC](https://discuss.elastic.co/t/setting-up-users/188277/1 "2019-07-01T09:46:26Z")

</div>

Im trying to setup users in elasticsearch, I downloaded elasticsearch dpkg packege.  
I cant find the elastic setup-password.  
When I try to configure the elasticsearch in elasticsearch.yml i didnt see any xpack.security enabled or false.  
Can anyone explain how to configure users.

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [July 1, 2019, 11:01am UTC](https://discuss.elastic.co/t/setting-up-users/188277/2 "2019-07-01T11:01:09Z")

</div>

> [@Jeniffer](#):
>
> Can anyone explain how to configure users.

I found the [Getting started with Elasticsearch security](https://www.elastic.co/blog/getting-started-with-elasticsearch-security) blog post very helpful, it tells you how to configure TLS which you'll need in order to enable security.

After enabling security in your cluster you may use the [elasticsearch-users](https://www.elastic.co/guide/en/elasticsearch/reference/current/users-command.html) tool to create your own Elasticsearch users. Unlike the built-in user (elastic, kibana etc) you can configure your own users with a number of different roles (for instance "read"-only) which is useful if you want to limit access to the cluster or certain indices for some users.

---

<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 2, 2019, 3:06am UTC](https://discuss.elastic.co/t/setting-up-users/188277/3 "2019-07-02T03:06:47Z")

</div>

> [@Jeniffer](#):
>
> I cant find the elastic setup-password.

You should be able to find that command at:

```auto
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords

```

> [@Jeniffer](#):
>
> When I try to configure the elasticsearch in elasticsearch.yml i didnt see any xpack.security enabled or false.

Not every possible elasticsearch setting is included in the sample `elasticsearch.yml` file that is installed for you.  
If you wish to configure a setting that isn't listed, you just need to add it yourself.

> [@Jeniffer](#):
>
> Can anyone explain how to configure users.

I recommend following the online tutorial:

- [Tutorial: Getting started with security | Elasticsearch Guide [7.2] | Elastic](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/security-getting-started.html)

---

<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:** [July 30, 2019, 7:04am UTC](https://discuss.elastic.co/t/setting-up-users/188277/6 "2019-07-30T07:04:31Z")

</div>

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