# Installation instructions

**URL:** <https://discuss.elastic.co/t/installation-instructions/20637>\
**Category:** Elasticsearch\
**Created:** [November 7, 2014, 4:56pm UTC](https://discuss.elastic.co/t/installation-instructions/20637 "2014-11-07T16:56:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jem\_indig](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jem\_indig](https://discuss.elastic.co/u/Jem_indig)\
**Post date:** [November 7, 2014, 4:56pm UTC](https://discuss.elastic.co/t/installation-instructions/20637/1 "2014-11-07T16:56:22Z")

</div>

Hi,  
I'm looking to do a sensible install of elasticsearch on Redhat.  
If I use  
sudo yum install elasticsearch as described here  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
everything is owned by root.

So what is the safest best-practice way to set up a user and do an install?

Cheers,  
J

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [November 7, 2014, 8:46pm UTC](https://discuss.elastic.co/t/installation-instructions/20637/2 "2014-11-07T20:46:20Z")

</div>

It shouldn't run as root as the install process creates an elasticsearch  
user.  
Can you do a "getent passwd|grep elasticsearch" and see if it has created  
one, or not?

On 8 November 2014 03:56, [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:

> Hi,  
> I'm looking to do a sensible install of elasticsearch on Redhat.  
> If I use  
> sudo yum install elasticsearch as described here  
> [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
> everything is owned by root.
> 
> So what is the safest best-practice way to set up a user and do an  
> install?
> 
> Cheers,  
> J
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jem\_indig](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jem\_indig](https://discuss.elastic.co/u/Jem_indig)\
**Post date:** [November 10, 2014, 9:37am UTC](https://discuss.elastic.co/t/installation-instructions/20637/3 "2014-11-10T09:37:08Z")

</div>

Hi,  
ah gotcha!.  
cool - assume there are no hartdcoded passwords anywhere and I can just set  
the password as I see fit?

Don't suppose you have any links to documentation for how the setup looks,  
best practices etc?

Cheers,  
J

On Fri, Nov 7, 2014 at 8:46 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> It shouldn't run as root as the install process creates an elasticsearch  
> user.  
> Can you do a "getent passwd|grep elasticsearch" and see if it has created  
> one, or not?
> 
> On 8 November 2014 03:56, [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> 
> > Hi,  
> > I'm looking to do a sensible install of elasticsearch on Redhat.  
> > If I use  
> > sudo yum install elasticsearch as described here  
> > [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
> > everything is owned by root.
> > 
> > So what is the safest best-practice way to set up a user and do an  
> > install?
> > 
> > Cheers,  
> > J
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [November 10, 2014, 9:38am UTC](https://discuss.elastic.co/t/installation-instructions/20637/4 "2014-11-10T09:38:39Z")

</div>

You shouldn't need to set the password at all as you shouldn't need to  
login as the ES user.

The docs are a great place to start -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 10 November 2014 20:37, Jem indig [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:

> Hi,  
> ah gotcha!.  
> cool - assume there are no hartdcoded passwords anywhere and I can just  
> set the password as I see fit?
> 
> Don't suppose you have any links to documentation for how the setup looks,  
> best practices etc?
> 
> Cheers,  
> J
> 
> On Fri, Nov 7, 2014 at 8:46 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > It shouldn't run as root as the install process creates an elasticsearch  
> > user.  
> > Can you do a "getent passwd|grep elasticsearch" and see if it has created  
> > one, or not?
> > 
> > On 8 November 2014 03:56, [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> > 
> > > Hi,  
> > > I'm looking to do a sensible install of elasticsearch on Redhat.  
> > > If I use  
> > > sudo yum install elasticsearch as described here  
> > > [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
> > > everything is owned by root.
> > > 
> > > So what is the safest best-practice way to set up a user and do an  
> > > install?
> > > 
> > > Cheers,  
> > > J
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jem\_indig](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jem\_indig](https://discuss.elastic.co/u/Jem_indig)\
**Post date:** [November 10, 2014, 10:56am UTC](https://discuss.elastic.co/t/installation-instructions/20637/5 "2014-11-10T10:56:05Z")

</div>

ok - and when it runs as a daemon/service it runs as the elasticsearch user.

When I installed it, using yum, I used sudo yum install elasticsearch which  
means that root owns the files. I guess this is standard?

1. If I want it to run interactively should I sudo and run it?

Sorry for the dumb quesitons - linux skills are very rusty....

Cheers,  
J

On Mon, Nov 10, 2014 at 9:38 AM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> You shouldn't need to set the password at all as you shouldn't need to  
> login as the ES user.
> 
> The docs are a great place to start -  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html)
> 
> On 10 November 2014 20:37, Jem indig [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> 
> > Hi,  
> > ah gotcha!.  
> > cool - assume there are no hartdcoded passwords anywhere and I can just  
> > set the password as I see fit?
> > 
> > Don't suppose you have any links to documentation for how the setup  
> > looks, best practices etc?
> > 
> > Cheers,  
> > J
> > 
> > On Fri, Nov 7, 2014 at 8:46 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> > 
> > > It shouldn't run as root as the install process creates an elasticsearch  
> > > user.  
> > > Can you do a "getent passwd|grep elasticsearch" and see if it has  
> > > created one, or not?
> > > 
> > > On 8 November 2014 03:56, [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> > > 
> > > > Hi,  
> > > > I'm looking to do a sensible install of elasticsearch on Redhat.  
> > > > If I use  
> > > > sudo yum install elasticsearch as described here  
> > > > [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
> > > > everything is owned by root.
> > > > 
> > > > So what is the safest best-practice way to set up a user and do an  
> > > > install?
> > > > 
> > > > Cheers,  
> > > > J
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04\_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [November 10, 2014, 11:12am UTC](https://discuss.elastic.co/t/installation-instructions/20637/6 "2014-11-10T11:12:16Z")

</div>

Yep it's owned by root but that's ok, the places ES needs to write to have  
the right permissions.

Why do you want to run ES interactively though? It will log everything to  
/var/log/elasticsearch if you need to look at the output. You can use sudo  
to run it as the ES user (eg

> **[Linux Run Command As Another User](https://www.cyberciti.biz/open-source/command-line-hacks/linux-run-command-as-different-user/)**
>
> Explains how to run Linux commands as another user or as the root user on Linux using the command-line (CLI) and GUI methods.

).

On 10 November 2014 21:56, Jem indig [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:

> ok - and when it runs as a daemon/service it runs as the elasticsearch  
> user.
> 
> When I installed it, using yum, I used sudo yum install elasticsearch  
> which means that root owns the files. I guess this is standard?
> 
> 1. If I want it to run interactively should I sudo and run it?
> 
> Sorry for the dumb quesitons - linux skills are very rusty....
> 
> Cheers,  
> J
> 
> On Mon, Nov 10, 2014 at 9:38 AM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > You shouldn't need to set the password at all as you shouldn't need to  
> > login as the ES user.
> > 
> > The docs are a great place to start -  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html)
> > 
> > On 10 November 2014 20:37, Jem indig [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> > 
> > > Hi,  
> > > ah gotcha!.  
> > > cool - assume there are no hartdcoded passwords anywhere and I can just  
> > > set the password as I see fit?
> > > 
> > > Don't suppose you have any links to documentation for how the setup  
> > > looks, best practices etc?
> > > 
> > > Cheers,  
> > > J
> > > 
> > > On Fri, Nov 7, 2014 at 8:46 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com)  
> > > wrote:
> > > 
> > > > It shouldn't run as root as the install process creates an  
> > > > elasticsearch user.  
> > > > Can you do a "getent passwd|grep elasticsearch" and see if it has  
> > > > created one, or not?
> > > > 
> > > > On 8 November 2014 03:56, [jemindig@gmail.com](mailto:jemindig@gmail.com) wrote:
> > > > 
> > > > > Hi,  
> > > > > I'm looking to do a sensible install of elasticsearch on Redhat.  
> > > > > If I use  
> > > > > sudo yum install elasticsearch as described here  
> > > > > [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html) then  
> > > > > everything is owned by root.
> > > > > 
> > > > > So what is the safest best-practice way to set up a user and do an  
> > > > > install?
> > > > > 
> > > > > Cheers,  
> > > > > J
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bd29756b-1be9-4295-a991-3066d187deb8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnW2iRTT4SkECN0QTfL8REENhwKb18%3DDcsRawTWR%3DMtrg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia\_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfSia_U%3DUBC6ZUg0yR5qLdzpNesnN8MQpr5LhX-PC2SXMg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe](https://groups.google.com/d/topic/elasticsearch/InShlT1oD6U/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk6MVVYVBrv057d8EOSuaGrA%2B47k6sHwOy%2BKmSN5uVkHA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04\_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04\_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMa9dfRKNcWhB2-k0-Re78LkWr04_qv8PCbRgzqEi4KVOjN5Vg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZn2C-oaZgUqCBTa9WZB0-8Wgy%2BvL1Y2f9rhOfktEiJbcA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZn2C-oaZgUqCBTa9WZB0-8Wgy%2BvL1Y2f9rhOfktEiJbcA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:51am UTC](https://discuss.elastic.co/t/installation-instructions/20637/7 "2017-07-06T00:51:09Z")

</div>


