# Setting up ELK on RHEL using RPM

**URL:** https://discuss.elastic.co/t/setting-up-elk-on-rhel-using-rpm/166300
**Category:** Elasticsearch
**Created:** [January 30, 2019, 8:30am UTC](https://discuss.elastic.co/t/setting-up-elk-on-rhel-using-rpm/166300 "2019-01-30T08:30:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Imrankhan\_Patan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imrankhan_patan/32/40363_2.png) [@Imrankhan\_Patan](https://discuss.elastic.co/u/Imrankhan_Patan)
#### Post date: [January 30, 2019, 8:30am UTC](https://discuss.elastic.co/t/setting-up-elk-on-rhel-using-rpm/166300/1 "2019-01-30T08:30:00Z")

</div>

I am trying to install ELK stack on RHEL linux using RPM packages downloaded.I could install only with root as it requires permissions for /etc directory. But after the installation it created users for logstash and elasticsearch. But when I am trying to run ES with root user its throwing error

org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root.

I want to use newly created users to run, How to enable those users to run ES, stash ?

---

<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: [February 27, 2019, 8:30am UTC](https://discuss.elastic.co/t/setting-up-elk-on-rhel-using-rpm/166300/2 "2019-02-27T08:30:02Z")

</div>

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