# Permissions for ~/ondemand directory (OOD\_DATAROOT)

**URL:** https://discourse.openondemand.org/t/permissions-for-ondemand-directory-ood-dataroot/4647
**Category:** Get Help
**Created:** [November 20, 2025, 4:51pm UTC](https://discourse.openondemand.org/t/permissions-for-ondemand-directory-ood-dataroot/4647 "2025-11-20T16:51:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dredwilliams](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dredwilliams/32/964_2.png) [@dredwilliams](https://discourse.openondemand.org/u/dredwilliams)
#### Post date: [November 20, 2025, 4:51pm UTC](https://discourse.openondemand.org/t/permissions-for-ondemand-directory-ood-dataroot/4647/1 "2025-11-20T16:51:52Z")

</div>

I noted the topic about the data files for interactive batch\_connect jobs having permissions set to 700 (#4047), but the ~/ondemand directory itself is created with 755 permissions. Is there a configuration variable somewhere that would allow me to set that entire directory tree to 700 permissions from the very start? If not, can you point me to the source file where I can edit that parameter myself?

---

<div class="post-metadata">

### Author: ![dredwilliams](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dredwilliams/32/964_2.png) [@dredwilliams](https://discourse.openondemand.org/u/dredwilliams)
#### Post date: [November 20, 2025, 7:31pm UTC](https://discourse.openondemand.org/t/permissions-for-ondemand-directory-ood-dataroot/4647/2 "2025-11-20T19:31:43Z")

</div>

Digging through the OOD source and thinking about the architecture, I realized that the dashboard app is most likely the one that actually creates the directory (it could also be the jobs app, but the dashboard comes first usually). None of the ‘mkdir’ or ‘mkpath’ calls specified a mode (except for the batch\_connect module discussed in the previous article), so it was most likely deriving its umask from the apache parent process, which pulls it from the system itself.

More research led to the /etc/pam.d/system-auth file as the way to set umask for all systemd created processes. Given that we run OOD inside its own podman container, I just added this line to the bottom of that file in my container:

```auto
session optional pam_umask.so umask=077

```

That did the trick. When I delete the directory and let OOD re-create it, it comes back with 700 permissions. I realize it is a crowbar approach and I need to do more testing to see if there are any unintended side effects – so if there is a more elegant way to do it within the OOD source, I’m open …

---

<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: [May 19, 2026, 7:32pm UTC](https://discourse.openondemand.org/t/permissions-for-ondemand-directory-ood-dataroot/4647/3 "2026-05-19T19:32:02Z")

</div>

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