# SUDO template for Elastic stack

**URL:** <https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895>\
**Category:** Elasticsearch\
**Created:** [January 4, 2019, 5:03am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895 "2019-01-04T05:03:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DineshTripathi](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@DineshTripathi](https://discuss.elastic.co/u/DineshTripathi)\
**Post date:** [January 4, 2019, 5:03am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895/1 "2019-01-04T05:03:58Z")

</div>

I have implemented Elastic stack on RHEL 7 but going forward the plan is to enable SUDO on Linux. Do we have a SUDO template which i can use for Elastic stack components?

---

<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:** [January 4, 2019, 5:14am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895/2 "2019-01-04T05:14:12Z")

</div>

What's SUDO?

---

<div class="post-metadata">

**Author:** ![DineshTripathi](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@DineshTripathi](https://discuss.elastic.co/u/DineshTripathi)\
**Post date:** [January 4, 2019, 5:17am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895/3 "2019-01-04T05:17:54Z")

</div>

sudo (superuser do) is utility in linux which control what can be executed by a non root user.  
in production environment, root is disabled and we should use our own user to perform any task.  
e..g As a elastic admin, i need to restart elasticsearch service, and that control we need to put in SUDO template so that we can control what all can be done with SUDO permission.

---

<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:** [January 4, 2019, 5:23am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895/4 "2019-01-04T05:23:47Z")

</div>

Oh right, I thought perhaps it was something RedHat specific.

> [@DineshTripathi](#):
>
> As a elastic admin, i need to restart elasticsearch service, and that control we need to put in SUDO template so that we can control what all can be done with SUDO permission.

We don't offer anything like that sorry.

---

<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 1, 2019, 5:23am UTC](https://discuss.elastic.co/t/sudo-template-for-elastic-stack/162895/5 "2019-02-01T05:23:48Z")

</div>

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