# Centos, how to install to run as unprivileged user?

**URL:** <https://discuss.elastic.co/t/centos-how-to-install-to-run-as-unprivileged-user/208335>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 18, 2019, 2:42pm UTC](https://discuss.elastic.co/t/centos-how-to-install-to-run-as-unprivileged-user/208335 "2019-11-18T14:42:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [November 18, 2019, 2:42pm UTC](https://discuss.elastic.co/t/centos-how-to-install-to-run-as-unprivileged-user/208335/1 "2019-11-18T14:42:17Z")

</div>

Hi,

When I install filebeat via `yum install ./filebeat-7.4.2-x86_64.rpm` the service is running as root.  
In the past I always edited `/usr/lib/systemd/system/filebeat.service` adding

```
User=filebeat
Group=filebeat

```

in `[Service]` section.

Is there any way to give the installation process the target user and group which should run filebeat service? It's a nasty post install/update task I want to get rid of because it is always trouble if we forget it.

Thanks, Andreas

---

<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:** [December 16, 2019, 2:42pm UTC](https://discuss.elastic.co/t/centos-how-to-install-to-run-as-unprivileged-user/208335/2 "2019-12-16T14:42:25Z")

</div>

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