# User Home Directory Issues

**URL:** <https://discourse.openondemand.org/t/user-home-directory-issues/1282>\
**Category:** Get Help\
**Created:** [January 22, 2021, 5:55pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282 "2021-01-22T17:55:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpuerto-psc](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jpuerto-psc/32/590_2.png) [@jpuerto-psc](https://discourse.openondemand.org/u/jpuerto-psc)\
**Post date:** [January 22, 2021, 5:55pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282/1 "2021-01-22T17:55:31Z")

</div>

Good Afternoon OSC Team,

Here with another question - this time related to the “Missing Home Directory Error”.

In an attempt to debug this issue, I commented out the line in pun\_config\_view.rb that checks for the home directory

```
    def missing_home_directory?
      false
      #! Dir.exist?(user.dir)
    end

```

With that in place, we are able to have the user log in to the system. Of course, there is an issue when attempting to actually access the home directory when clicking Files\>Home Directory in the user interface.

```
EACCES: permission denied, scandir "$HOME"

```

$HOME does output the appropriate user home directory in the actual message.

My question here is, what user needs to have permission to access these directories (since it seems to be a permission issue that is causing this issue)? The apache user, or the ondemand-nginx user?

Thank you in advance!

Juan

---

<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:** [January 27, 2021, 7:37pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282/2 "2021-01-27T19:37:58Z")

</div>

Hey it’s the actual system user who’s logged in. I mean the unprivileged user. Your having issues using seeing your own HOME directory? That seems strange. What’s your selinux setup like? Do you see any warnings coming from it in the audit logs?

---

<div class="post-metadata">

**Author:** ![jpuerto-psc](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jpuerto-psc/32/590_2.png) [@jpuerto-psc](https://discourse.openondemand.org/u/jpuerto-psc)\
**Post date:** [January 27, 2021, 7:54pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282/3 "2021-01-27T19:54:59Z")

</div>

Jeff,

Apologies for not responding here earlier. It does, in fact, look to be an issue with out SELinux configuration.

Thanks again for all the help!

Best,

Juan

---

<div class="post-metadata">

**Author:** ![JPGlaser](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jpglaser/32/967_2.png) [@JPGlaser](https://discourse.openondemand.org/u/JPGlaser)\
**Post date:** [January 20, 2022, 5:39pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282/4 "2022-01-20T17:39:12Z")

</div>

@jeff.ohrstrom and @jpuerto-psc

I am facing this issue currently on RHEL 8.5 with SELinux enabled with an RPM install of the SELinux version of OnDemand 2.0. What was the solution in setting up the SELinux configuration? Adding in the $HOME variable into the `profile` file does not work.

~ Joe G.

---

<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:** [January 21, 2022, 5:50pm UTC](https://discourse.openondemand.org/t/user-home-directory-issues/1282/5 "2022-01-21T17:50:01Z")

</div>

I know you have another thread but you may have to let us know the entry in your audit log.

SELinux related files are stored here:

> **[ondemand/packaging/rpm at master · OSC/ondemand](https://github.com/OSC/ondemand/tree/master/packaging/rpm)**
>
> master/packaging/rpm
