# Umask for OOD session

**URL:** <https://discourse.openondemand.org/t/umask-for-ood-session/2087>\
**Category:** Get Help\
**Tags:** question\
**Created:** [May 27, 2022, 3:50pm UTC](https://discourse.openondemand.org/t/umask-for-ood-session/2087 "2022-05-27T15:50:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillill](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/stillill/32/463_2.png) [@stillill](https://discourse.openondemand.org/u/stillill)\
**Post date:** [May 27, 2022, 3:50pm UTC](https://discourse.openondemand.org/t/umask-for-ood-session/2087/1 "2022-05-27T15:50:58Z")

</div>

I’ve noticed that when using OOD apps that the umask I’ve set in my ~/.bashrc file doesn’t get applied to the OOD session app. Instead the default system umask is applied. It appears my ~/.bashrc does get sourced when starting up the OOD session because various environment variables I’ve set in my ~/.bashrc are set in the OOD session as well and recognized by the app. Consequently, when I use (for example) the editor in a RStudio desktop app and create a new file, the permissions aren’t set according to the umask I have in my ~/.bashrc but rather to the system default umask. If I open a Terminal in the RStudio desktop app and use touch to create a new file then my umask permissions are applied. The problem is when using the app directly. Anyone have any idea what’s going on here? Is the umask I’ve set in my ~/.bashrc somehow getting overwritten by the OOD app startup process? Anyway to fix this? I’d rather not create a sandbox app and hardcode my umask into the app launch script if it can be avoided. I am using OOD version 2.0.20.

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [May 31, 2022, 2:07pm UTC](https://discourse.openondemand.org/t/umask-for-ood-session/2087/2 "2022-05-31T14:07:23Z")

</div>

Hi and welcome!

Can I ask what scheduler you are using? I’m going to need to look at this on my end to see how this is working based on various schedulers.

---

<div class="post-metadata">

**Author:** ![stillill](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/stillill/32/463_2.png) [@stillill](https://discourse.openondemand.org/u/stillill)\
**Post date:** [May 31, 2022, 3:06pm UTC](https://discourse.openondemand.org/t/umask-for-ood-session/2087/3 "2022-05-31T15:06:43Z")

</div>

Sure, no problem! We’re using SLURM. I’m curious have you been able to replicate this behavior? I hope it’s just not something weird with our OOD setup. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [November 27, 2022, 3:07pm UTC](https://discourse.openondemand.org/t/umask-for-ood-session/2087/4 "2022-11-27T15:07:01Z")

</div>

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