# LS\_USER and LS\_GROUP options not working

**URL:** <https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033>\
**Category:** Logstash\
**Created:** [April 11, 2017, 6:16pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033 "2017-04-11T18:16:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshafrnd4u](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@harshafrnd4u](https://discuss.elastic.co/u/harshafrnd4u)\
**Post date:** [April 11, 2017, 6:16pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/1 "2017-04-11T18:16:59Z")

</div>

I configured LS\_USER="root" and LS\_GROUP="root" parameters in two places "etc/default/logstash" and "etc/logstash/startup.options". When I start with command "sudo service logstash start" it is starting with logstash user.

The reason I am changing this is it is difficult to give file permissions to all log files which are necessary. So i thought of starting logstash as root so that it can have access to all of them.

Can anyone please suggest alternatives or better solutions?

Thanks  
Harsha

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [April 12, 2017, 1:47am UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/2 "2017-04-12T01:47:42Z")

</div>

try just adding to the end of your etc/default/logstash I think this is how I solved a similar issue

```auto
export LS_USER LS_GROUP 

```

---

<div class="post-metadata">

**Author:** ![harshafrnd4u](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@harshafrnd4u](https://discuss.elastic.co/u/harshafrnd4u)\
**Post date:** [April 12, 2017, 5:13am UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/3 "2017-04-12T05:13:44Z")

</div>

@eperry It didn't work for me. Any other solution you have?

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [April 12, 2017, 12:42pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/4 "2017-04-12T12:42:49Z")

</div>

I will check my config today, I know I ran in to this,

Just for a sanity check, how did you install logstash, version and what Linux distribution?

---

<div class="post-metadata">

**Author:** ![harshafrnd4u](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@harshafrnd4u](https://discuss.elastic.co/u/harshafrnd4u)\
**Post date:** [April 12, 2017, 12:46pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/5 "2017-04-12T12:46:12Z")

</div>

Thanks @eperry

I installed logstash through apt-get sources and I am using Ubuntu 14.04 LTS, am using latest logstash 5.3.0

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [April 12, 2017, 12:48pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/6 "2017-04-12T12:48:10Z")

</div>

ok, will have to check, my fix was for rhel but I may be able to recreate it on my desktop

---

<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:** [May 10, 2017, 12:48pm UTC](https://discuss.elastic.co/t/ls-user-and-ls-group-options-not-working/82033/7 "2017-05-10T12:48:40Z")

</div>

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