# Unable to change default docker user

**URL:** <https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 6, 2018, 6:16am UTC](https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728 "2018-06-06T06:16:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naisanza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naisanza/32/44808_2.png) [@naisanza](https://discuss.elastic.co/u/naisanza)\
**Post date:** [June 6, 2018, 6:16am UTC](https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728/1 "2018-06-06T06:16:18Z")

</div>

I'm using rancher, and I'm trying to setup a container to read from all the configured log directories on the host filesystem (i.e. /var/log).

However, the default id used by [docker.elastic.co/beats/filebeat:6.2.2](http://docker.elastic.co/beats/filebeat:6.2.2) is `1000`. So, it can't read anything it doesn't have ownership of.

Is there a best practice for this? Should I be using logstash or a shipper instead?

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [June 6, 2018, 10:05pm UTC](https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728/2 "2018-06-06T22:05:18Z")

</div>

Hi @naisanza,

You can run Filebeat as root if needed, you can either update the image to apply correct permissions to configuration files or pass `--strict.perms=false` parameter

Best regards

---

<div class="post-metadata">

**Author:** ![naisanza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naisanza/32/44808_2.png) [@naisanza](https://discuss.elastic.co/u/naisanza)\
**Post date:** [June 11, 2018, 11:36pm UTC](https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728/3 "2018-06-11T23:36:50Z")

</div>

@exekias I'm using Rancher, so I'm using the official images. I'm guessing those are docker parameters and not parameters I can apply to the entrypoint inside the official image?

---

<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 9, 2018, 11:37pm UTC](https://discuss.elastic.co/t/unable-to-change-default-docker-user/134728/4 "2018-07-09T23:37:16Z")

</div>

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