# $Home Directory Doesn't Exist (CAS, SELinux, & University Controlled AD)

**URL:** <https://discourse.openondemand.org/t/home-directory-doesnt-exist-cas-selinux-university-controlled-ad/1880>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [January 20, 2022, 5:55pm UTC](https://discourse.openondemand.org/t/home-directory-doesnt-exist-cas-selinux-university-controlled-ad/1880 "2022-01-20T17:55:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 21, 2022, 4:25pm UTC](https://discourse.openondemand.org/t/home-directory-doesnt-exist-cas-selinux-university-controlled-ad/1880/2 "2022-01-21T16:25:42Z")

</div>

Hello and thanks for posting!

The relevant links that should help you clear the issue up can be found below.

Here’s the relevant part of the docs you will want:  
[https://osc.github.io/ood-documentation/latest/customization.html?highlight=home#custom-error-page-for-missing-home-directory-on-launch](https://osc.github.io/ood-documentation/latest/customization.html?highlight=home#custom-error-page-for-missing-home-directory-on-launch)

And there is a separate Discourse that goes into more detail:

> [@Launching OnDemand when home directory does not exist](https://discourse.openondemand.org/t/launching-ondemand-when-home-directory-does-not-exist/53):
>
> Some sites have the home directory auto-create on first ssh login, for example via pam\_mkhomedir.so. This introduces a problem if users first access the system through OnDemand, which expects the existence of a user’s home directory. How can we configure OnDemand to handle this edge case?

It essentially has to do with when that $HOME directory is created and trying to access it before that happens, and how to make sure it does get created for the user if they try to access it before it exists by providing an error page that allows the SSH session to start and create the $HOME for the user.

Hopefully that will help clear the issue but please let me know if you need any more help or guidance

---

_[View the full topic](https://discourse.openondemand.org/t/home-directory-doesnt-exist-cas-selinux-university-controlled-ad/1880)._
