# Can't log in kibana as the built-in elastic user

**URL:** <https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795>\
**Category:** Kibana\
**Created:** [April 27, 2018, 9:20am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795 "2018-04-27T09:20:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![panjf2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panjf2000/32/30541_2.png) [@panjf2000](https://discuss.elastic.co/u/panjf2000)\
**Post date:** [April 27, 2018, 9:20am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/1 "2018-04-27T09:20:30Z")

</div>

Hi all, after installing x-pack on elasticsearch and kibana，i tried to log in kibana as the built-in elastic user and it can enter kibana successfully，however，it turned out i log in as the "kibana" user，how would that happened？

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a4ebdd64057170503329208ab5dcf00865d95ed.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53a067469b92a7e2fbce8e9e25ed965384bf634d.png)

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [April 27, 2018, 11:07am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/2 "2018-04-27T11:07:52Z")

</div>

> tried to log in kibana as the built-in elastic user and it can enter kibana successfully

I assume you mean "it **can't** enter kibana successfully" ?

1. What is the error you're getting ?
2. Are there any errors in the kibana.log file ? If so what are these errors?
3. Are there any errors in the elasticsearch.log file ? If so what are these errors?
4. what have you set for

```auto
elasticsearch.username: 
elasticsearch.password: 

```

in `kibana.yml`
5. What is the output of

```auto
 curl -k -u elastic 'http://<your_server_here>:9200/_xpack/security/_authenticate?pretty'

```

6. How did you set the password for `elastic` and `kibana` users ?

---

<div class="post-metadata">

**Author:** ![panjf2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panjf2000/32/30541_2.png) [@panjf2000](https://discuss.elastic.co/u/panjf2000)\
**Post date:** [April 27, 2018, 11:16am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/3 "2018-04-27T11:16:56Z")

</div>

hi @ikakavas，first of all，thanks for your reply.

i mean i can enter kibana and i can also use all the features，it works fine；  
i do all steps by flowing this documentation：[Install X-Pack](https://www.elastic.co/cn/downloads/x-pack)  
and the output of your request is:

```auto
{
  "username" : "elastic",
  "roles" : [
    "superuser"
  ],
  "full_name" : null,
  "email" : null,
  "metadata" : {
    "_reserved" : true
  },
  "enabled" : true
}

```

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [April 27, 2018, 11:18am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/4 "2018-04-27T11:18:15Z")

</div>

Hi ,

Then I can't understand what is your problem and/or your question. Can you clarify ?

---

<div class="post-metadata">

**Author:** ![panjf2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panjf2000/32/30541_2.png) [@panjf2000](https://discuss.elastic.co/u/panjf2000)\
**Post date:** [April 27, 2018, 11:24am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/5 "2018-04-27T11:24:05Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/5/859e16d141d3394a651cc095b8159747f5b5b785.png)  
this documentation said that logging in as elastic-user which is a superuser so that i can do some jobs about management like adding new roles and users:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dc113ce01f71a954ced407220cdfd33423c1cb17.png)

my problem is that i can't log in as the elastic-user even though i did enter the elastic username and its password in kibana's login page,it still logged in as the kibana-user,just like i mentioned.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [April 27, 2018, 11:32am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/6 "2018-04-27T11:32:32Z")

</div>

Excuse me but I can't follow you. You say that you login as the `elastic` user and you end up logged in as the `kibana` user somehow ?

Can you try closing restarting your browser or using an incognito window?

---

<div class="post-metadata">

**Author:** ![panjf2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panjf2000/32/30541_2.png) [@panjf2000](https://discuss.elastic.co/u/panjf2000)\
**Post date:** [April 27, 2018, 11:36am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/7 "2018-04-27T11:36:52Z")

</div>

yeah,that's my problem,and i tried to clear cookies and it still acted like this

---

<div class="post-metadata">

**Author:** ![panjf2000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panjf2000/32/30541_2.png) [@panjf2000](https://discuss.elastic.co/u/panjf2000)\
**Post date:** [April 27, 2018, 11:42am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/8 "2018-04-27T11:42:25Z")

</div>

hi @ikakavas, i tried to restart the browser and it work fine now,so sorry to cost you so much time and thank you for your patience！

---

<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:** [May 25, 2018, 11:42am UTC](https://discuss.elastic.co/t/cant-log-in-kibana-as-the-built-in-elastic-user/129795/9 "2018-05-25T11:42:28Z")

</div>

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