# Guideline for creating user to run elasticsearch5.5.1

**URL:** https://discuss.elastic.co/t/guideline-for-creating-user-to-run-elasticsearch5-5-1/95556
**Category:** Elasticsearch
**Created:** [August 2, 2017, 2:48pm UTC](https://discuss.elastic.co/t/guideline-for-creating-user-to-run-elasticsearch5-5-1/95556 "2017-08-02T14:48:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aliyesami](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aliyesami](https://discuss.elastic.co/u/aliyesami)
#### Post date: [August 2, 2017, 2:48pm UTC](https://discuss.elastic.co/t/guideline-for-creating-user-to-run-elasticsearch5-5-1/95556/1 "2017-08-02T14:48:19Z")

</div>

I installed elasticsearch 5.5.1 from a gzip on centos6 file but when I start it as root I am getting the error

> java.lang.RuntimeException: can not run elasticsearch as root

I searched for a document on how to create username for starting elasticsearch but I couldn't find any. can someone guide me on this step ?

thanks

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [August 2, 2017, 3:02pm UTC](https://discuss.elastic.co/t/guideline-for-creating-user-to-run-elasticsearch5-5-1/95556/2 "2017-08-02T15:02:53Z")

</div>

This is a centos question. Not related to elasticsearch IMO.

`adduser` maybe ?

---

<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: [August 30, 2017, 3:03pm UTC](https://discuss.elastic.co/t/guideline-for-creating-user-to-run-elasticsearch5-5-1/95556/3 "2017-08-30T15:03:29Z")

</div>

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