# File App Umask Config

**URL:** <https://discourse.openondemand.org/t/file-app-umask-config/4915>\
**Category:** Get Help\
**Tags:** question\
**Created:** [June 26, 2026, 1:42pm UTC](https://discourse.openondemand.org/t/file-app-umask-config/4915 "2026-06-26T13:42:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![armiger729](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/armiger729/32/3446_2.png) [@armiger729](https://discourse.openondemand.org/u/armiger729)\
**Post date:** [June 26, 2026, 1:42pm UTC](https://discourse.openondemand.org/t/file-app-umask-config/4915/1 "2026-06-26T13:42:28Z")

</div>

Hi there,

I’m trying to figure out how to go about tweaking the default umask settings for files created within the Files App - it appears to be using a umask of `0022`, which we’d like to change.

Currently, we have the intended umask set within `/etc/profile` and `/etc/bashrc`, which seemed to help with a lot of related troubles, but content created within the Files App do not seem to be taking on such settings.

I did see another article posted here from 2019 that referenced this exact issue, which seemed to be a workaround at the time ( [Files App umask](https://discourse.openondemand.org/t/files-app-umask/281) ). However, in another post, sometime in 2021, it was mentioned that the proposed fix no longer worked - our attempt at implementation, also, did not seem to work for us.

Thanks!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 26, 2026, 2:04pm UTC](https://discourse.openondemand.org/t/file-app-umask-config/4915/2 "2026-06-26T14:04:27Z")

</div>

You may be able to do the same workaround, only with a `ruby` (instead of `node`) file in a slightly different location (`sys/dashboard/bin` instead of `sys/files/bin`).

```auto
#!/usr/bin/env bash

# /var/www/ood/apps/sys/dashboard/bin/ruby

# 0002 or the umask you'd like
umask 0002

exec ruby "$@" 

```
