# Can not run elasticsearch as root

**URL:** https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083
**Category:** Elasticsearch
**Created:** [May 17, 2017, 10:42am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083 "2017-05-17T10:42:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pjayramkumar](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@pjayramkumar](https://discuss.elastic.co/u/pjayramkumar)
#### Post date: [May 17, 2017, 10:42am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083/1 "2017-05-17T10:42:35Z")

</div>

Hello

i am working with elasticsearch 5.4

os : centos 7

when i run this command bash -x usr/share/elasticsearch/bin/elasticsearch

then it's give me error and i research that root user is disable to elasticsearch in the 5.4 what should be the solution

---

<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: [May 17, 2017, 10:51am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083/2 "2017-05-17T10:51:04Z")

</div>

You should not run ES as root.

---

<div class="post-metadata">

### Author: ![pjayramkumar](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@pjayramkumar](https://discuss.elastic.co/u/pjayramkumar)
#### Post date: [May 17, 2017, 10:56am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083/3 "2017-05-17T10:56:14Z")

</div>

then how i can run that ?

guide me

because of this error i can't add multiple nodes as well

---

<div class="post-metadata">

### Author: ![pjayramkumar](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@pjayramkumar](https://discuss.elastic.co/u/pjayramkumar)
#### Post date: [May 17, 2017, 11:36am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083/4 "2017-05-17T11:36:00Z")

</div>

Hello i try with new user and working fine

but after that

curl -XGET [http://localhost:9200/\_cluster/health?pretty=true](http://localhost:9200/_cluster/health?pretty=true)

this will give me nothing as output

---

<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: [June 14, 2017, 11:36am UTC](https://discuss.elastic.co/t/can-not-run-elasticsearch-as-root/86083/5 "2017-06-14T11:36:02Z")

</div>

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