# Default user/password after Shield is installed

**URL:** <https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 4, 2016, 9:15pm UTC](https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221 "2016-10-04T21:15:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [October 4, 2016, 9:15pm UTC](https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221/1 "2016-10-04T21:15:02Z")

</div>

So I have installed license and shield plugins, after which I get user authentication error. I guess it defaults to Shield realm. What's the default user/password ? Also, how do I manually create users from a command line?

---

<div class="post-metadata">

**Author:** ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Post date:** [October 4, 2016, 11:35pm UTC](https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221/2 "2016-10-04T23:35:31Z")

</div>

I don't think there's a default user. You have to create them first, from command line.

Here: [https://www.elastic.co/guide/en/shield/current/enable-basic-auth.html](https://www.elastic.co/guide/en/shield/current/enable-basic-auth.html)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2016, 8:31am UTC](https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221/3 "2016-10-05T08:31:07Z")

</div>

There is no default for 2.X, for 5.X it's `elastic` and `password`.

---

<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 6, 2017, 1:41pm UTC](https://discuss.elastic.co/t/default-user-password-after-shield-is-installed/62221/4 "2017-07-06T13:41:42Z")

</div>


