# Unable to setup authentication using x-pack

**URL:** <https://discuss.elastic.co/t/unable-to-setup-authentication-using-x-pack/82585>\
**Category:** Elasticsearch\
**Created:** [April 17, 2017, 2:47pm UTC](https://discuss.elastic.co/t/unable-to-setup-authentication-using-x-pack/82585 "2017-04-17T14:47:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [April 18, 2017, 1:38pm UTC](https://discuss.elastic.co/t/unable-to-setup-authentication-using-x-pack/82585/5 "2017-04-18T13:38:27Z")

</div>

```
./users roles adminuser -r superuser

```

When running the `roles` sub-command a `-r` is a _remove_ option.  
The command you ran remove the superuser role from adminuser.

You can see the help text for by running

```
 bin/x-pack/users roles --help    

```

With respect to your other questions:

> [@](#):
>
> I have installed x-pack for kibana and also for Logstash. Do I have to create users/roles in these as well?

No, users are only created in Elasticsearch. The other products in the Elastic Stack use Elasticsearch as their user store where applicable. However, you will need to configure those products so that they can authenticate to Elasticsearch.

> [@](#):
>
> I see that without these proper authentication process Elasticsearch is not accepting any logs from LogStash

Please see: [Logstash Reference [8.11] | Elastic](https://www.elastic.co/guide/en/x-pack/current/logstash.html)

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-setup-authentication-using-x-pack/82585)._
