# Default Home Directory

**URL:** <https://discourse.openondemand.org/t/default-home-directory/4588>\
**Category:** Get Help\
**Tags:** question\
**Created:** [October 20, 2025, 3:31am UTC](https://discourse.openondemand.org/t/default-home-directory/4588 "2025-10-20T03:31:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungct17](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hungct17/32/3003_2.png) [@hungct17](https://discourse.openondemand.org/u/hungct17)\
**Post date:** [October 20, 2025, 3:31am UTC](https://discourse.openondemand.org/t/default-home-directory/4588/1 "2025-10-20T03:31:14Z")

</div>

By default, when i log user into OOD for the first time all data will be written in home directory /home//ondemand. How can i change default home directory and written in another folder when i login at first time?

---

<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:** [October 20, 2025, 2:29pm UTC](https://discourse.openondemand.org/t/default-home-directory/4588/2 "2025-10-20T14:29:34Z")

</div>

You can set the environment variable `OOD_DATAROOT` to something different. Note that something like `"OOD_DATAROOT="$HOME/otherdirectory"` should work, evaluating the $HOME variable.

Set this in both `/etc/ood/config/apps/dashboard/env` and `/etc/ood/config/apps/myjobs/env` for consistency.

---

<div class="post-metadata">

**Author:** ![hungct17](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hungct17/32/3003_2.png) [@hungct17](https://discourse.openondemand.org/u/hungct17)\
**Post date:** [October 21, 2025, 1:36am UTC](https://discourse.openondemand.org/t/default-home-directory/4588/3 "2025-10-21T01:36:00Z")

</div>

For example, i want to write my data in folder /home1//… when i login at first time is that ok?

---

<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:** [October 21, 2025, 1:57pm UTC](https://discourse.openondemand.org/t/default-home-directory/4588/4 "2025-10-21T13:57:04Z")

</div>

If that’s where you want to write data, then yes that’s totally fine!

---

<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:** [April 19, 2026, 1:57pm UTC](https://discourse.openondemand.org/t/default-home-directory/4588/5 "2026-04-19T13:57:41Z")

</div>

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