# Override default umask

**URL:** <https://discuss.elastic.co/t/override-default-umask/278437>\
**Category:** Beats\
**Tags:** beats-module, filebeat, auditbeat\
**Created:** [July 12, 2021, 2:49pm UTC](https://discuss.elastic.co/t/override-default-umask/278437 "2021-07-12T14:49:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prandelicious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prandelicious/32/91510_2.png) [@prandelicious](https://discuss.elastic.co/u/prandelicious)\
**Post date:** [July 12, 2021, 2:49pm UTC](https://discuss.elastic.co/t/override-default-umask/278437/1 "2021-07-12T14:49:16Z")

</div>

I understand the dev team has hardcoded the umask to `0027` in `libbeats` so this applies to all beats apps. Is there a way to override this in the configuration file or CLI parameter?

---

<div class="post-metadata">

**Author:** ![kortschak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kortschak/32/91487_2.png) [@kortschak](https://discuss.elastic.co/u/kortschak)\
**Post date:** [July 13, 2021, 6:09am UTC](https://discuss.elastic.co/t/override-default-umask/278437/2 "2021-07-13T06:09:07Z")

</div>

It does not look like the [struct field](https://github.com/elastic/beats/blob/11b545a182909de2234aed8bf2916f16f2234f5e/libbeat/cmd/instance/settings.go#L49) in `instance.Settings` that is used to hold the umask is ever set, so it looks like no. The only reference I can find to this field is in it's use [here](https://github.com/elastic/beats/blob/11b545a182909de2234aed8bf2916f16f2234f5e/libbeat/cmd/instance/beat.go#L1128-L1130).

As you've seen, there is an issue for this though: [logging.files.permissions setting is not taken into account · Issue #24555 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/24555).

---

<div class="post-metadata">

**Author:** ![prandelicious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prandelicious/32/91510_2.png) [@prandelicious](https://discuss.elastic.co/u/prandelicious)\
**Post date:** [July 13, 2021, 9:00pm UTC](https://discuss.elastic.co/t/override-default-umask/278437/3 "2021-07-13T21:00:32Z")

</div>

I guess I'd have to re-compile using a different umask then. Thanks for your help!

---

<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:** [August 10, 2021, 11:00pm UTC](https://discuss.elastic.co/t/override-default-umask/278437/4 "2021-08-10T23:00:53Z")

</div>

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