# Elasticsearch user creation

**URL:** <https://discuss.elastic.co/t/elasticsearch-user-creation/145609>\
**Category:** Elasticsearch\
**Created:** [August 22, 2018, 8:17pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609 "2018-08-22T20:17:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [August 22, 2018, 8:17pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/1 "2018-08-22T20:17:20Z")

</div>

Before the elasticsearch installation , is there any need for creating a user named "elasticsearch " ( in Linux) ?

I know elasticsearch installation time elasticsearch will automatically creating the "elastisearch" user. But its a nologin user.

---

<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:** [August 23, 2018, 3:07am UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/2 "2018-08-23T03:07:46Z")

</div>

As you point out, it creates one for you.

---

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [August 26, 2018, 7:10pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/3 "2018-08-26T19:10:09Z")

</div>

The issue is solved .

First we have to create a user named "elasticsearch ". After that we have to install elasticsearch . Other wise if we are installing elasticsearch by another user , elasticsearch cant run under the user "elastisearch "

If we are installing ES by anyother user , ES will create a no login "elasticsearch " user in linux . That user we cant use.

But in installation document no where mentioned this thing . First create the user elasticsearch and install it.

---

<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:** [August 27, 2018, 12:32am UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/4 "2018-08-27T00:32:30Z")

</div>

You don't need to do this, the install process creates the user for you if it needs to.

---

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [August 27, 2018, 3:14pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/5 "2018-08-27T15:14:45Z")

</div>

But that is a nologin user . I cant login to that user . Without login how can I run ./bin/elasticsearch from elasticsearch user ?

---

<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:** [August 27, 2018, 7:32pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/6 "2018-08-27T19:32:41Z")

</div>

If you are using a DEB or RPM then use your operating systems native `service` function/command.

---

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [August 30, 2018, 7:10pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/7 "2018-08-30T19:10:10Z")

</div>

This " systemctl start elasticsearch " command is also running under a user.

---

<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:** [September 27, 2018, 7:10pm UTC](https://discuss.elastic.co/t/elasticsearch-user-creation/145609/8 "2018-09-27T19:10:15Z")

</div>

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