# Files App umask

**URL:** <https://discourse.openondemand.org/t/files-app-umask/281>\
**Category:** Get Help\
**Created:** [April 9, 2019, 12:10pm UTC](https://discourse.openondemand.org/t/files-app-umask/281 "2019-04-09T12:10:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssivy](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/ssivy/32/106_2.png) [@ssivy](https://discourse.openondemand.org/u/ssivy)\
**Post date:** [April 9, 2019, 12:10pm UTC](https://discourse.openondemand.org/t/files-app-umask/281/1 "2019-04-09T12:10:35Z")

</div>

I’m trying to figure out how to change the default ‘umask’ that is used when the Files App creates new directories and files. Currently (at least on our system) it is using 022. For example, directories are created with permissions drwxr-xr-x. I want to change this to 002 so directories get a default permission of drwxrwxr-x. Where would I need to change the umask setting? Is that in the Files application or at the OS level for the user (and which user, the actual one or what the web server runs as)?

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [April 9, 2019, 2:43pm UTC](https://discourse.openondemand.org/t/files-app-umask/281/2 "2019-04-09T14:43:34Z")

</div>

We are looking into it: [https://github.com/OSC/ood-fileexplorer/issues/200](https://github.com/OSC/ood-fileexplorer/issues/200)

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [April 23, 2019, 8:05pm UTC](https://discourse.openondemand.org/t/files-app-umask/281/3 "2019-04-23T20:05:14Z")

</div>

See [https://github.com/OSC/ood-fileexplorer/issues/200#issuecomment-484085506](https://github.com/OSC/ood-fileexplorer/issues/200#issuecomment-484085506) for an example of how to do this for just the files app. It amounts to adding a file `/var/www/ood/apps/sys/files/bin/node`

Once we have a solution that works to affect all the OnDemand apps we will provide that.

---

<div class="post-metadata">

**Author:** ![ssivy](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/ssivy/32/106_2.png) [@ssivy](https://discourse.openondemand.org/u/ssivy)\
**Post date:** [April 26, 2019, 1:05pm UTC](https://discourse.openondemand.org/t/files-app-umask/281/4 "2019-04-26T13:05:09Z")

</div>

Thanks. I’ve implemented this at our site, and it appears to resolve the permissions issue.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:18pm UTC](https://discourse.openondemand.org/t/files-app-umask/281/5 "2022-05-26T15:18:21Z")

</div>


