# X-pack kibana user fails to login

**URL:** <https://discuss.elastic.co/t/x-pack-kibana-user-fails-to-login/198350>\
**Category:** Kibana\
**Created:** [September 6, 2019, 5:55am UTC](https://discuss.elastic.co/t/x-pack-kibana-user-fails-to-login/198350 "2019-09-06T05:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manosmustang](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@manosmustang](https://discuss.elastic.co/u/manosmustang)\
**Post date:** [September 6, 2019, 5:55am UTC](https://discuss.elastic.co/t/x-pack-kibana-user-fails-to-login/198350/1 "2019-09-06T05:55:17Z")

</div>

Hello,

I run the command elasticsearch-setup-passwords interactive and everything run smoothly.

But when I am trying to login at kibana with kibana user it fails I get the below error

`{"statusCode":403,"error":"Forbidden","message":"Forbidden"}`

With elastic user/password there is no issue. I created also a new user and I managed to login. I changed the password for kibana user and it still the same.

the node is only for kibana connected to a cluster. In general kibana works ok

```
node.master: false
node.data: false
node.ingest: false

```

Also when I run the curl 'localhost:9200/\_cat/indices?v'?

I get

`{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/_cat/indices?v?]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/_cat/indices?v?]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}`

Any advice would be great full. Thank you

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [September 11, 2019, 1:23pm UTC](https://discuss.elastic.co/t/x-pack-kibana-user-fails-to-login/198350/2 "2019-09-11T13:23:09Z")

</div>

Hi @manosmustang,

You're not supposed to log in with `kibana` user, it's user that is used by Kibana internally to communicate with Elasticsearch. You need to log in with `elastic` user and create another user with the necessary roles and privileges.

Best,  
Oleg

---

<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:** [October 9, 2019, 1:23pm UTC](https://discuss.elastic.co/t/x-pack-kibana-user-fails-to-login/198350/3 "2019-10-09T13:23:21Z")

</div>

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