# Kibana 403 forbidden

**URL:** <https://discuss.elastic.co/t/kibana-403-forbidden/250089>\
**Category:** Kibana\
**Created:** [September 27, 2020, 1:41pm UTC](https://discuss.elastic.co/t/kibana-403-forbidden/250089 "2020-09-27T13:41:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111380](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111380/32/45037_2.png) [@111380](https://discuss.elastic.co/u/111380)\
**Post date:** [September 27, 2020, 1:41pm UTC](https://discuss.elastic.co/t/kibana-403-forbidden/250089/1 "2020-09-27T13:41:35Z")

</div>

Hi!  
After creating passwords "./elasticsearch-setup-password auto" it is impossible to log in to kibana, error 403 forbidden

/etc/kibana/kibana.yml:  
elasticsearch.username: "kibana"  
elasticsearch.password: "password"

xpack.security.encryptionKey: "something\_at\_least\_32\_characters"  
xpack.security.sessionTimeout: 600000

/etc/elasticsearch/elasticsearch.yml:  
xpack.security.enabled: true

There is a lot of information about this error, but there is no solution anywhere. I saw that it is necessary to set the correct rights to the kibana user, but there is no information about how to do this. I need help.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [September 27, 2020, 4:41pm UTC](https://discuss.elastic.co/t/kibana-403-forbidden/250089/2 "2020-09-27T16:41:04Z")

</div>

> [@111380](#):
>
> elasticsearch.username: "kibana"

Try changing that to

```auto
elasticsearch.username: "elastic"

```

---

<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 25, 2020, 4:41pm UTC](https://discuss.elastic.co/t/kibana-403-forbidden/250089/3 "2020-10-25T16:41:22Z")

</div>

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