# Working directory

**URL:** <https://discourse.jupyter.org/t/working-directory/21865>\
**Category:** JupyterHub\
**Created:** [October 11, 2023, 4:42pm UTC](https://discourse.jupyter.org/t/working-directory/21865 "2023-10-11T16:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rick63](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rick63](https://discourse.jupyter.org/u/rick63)\
**Post date:** [October 11, 2023, 4:42pm UTC](https://discourse.jupyter.org/t/working-directory/21865/1 "2023-10-11T16:42:24Z")

</div>

Hi,  
I would like to change my working directory.  
I modify in jupyterhub\_config.py the parameter c.Spawner.notebook\_dir, but I see all directory. I want to hide any directory.  
What I to do ?

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [October 11, 2023, 8:18pm UTC](https://discourse.jupyter.org/t/working-directory/21865/2 "2023-10-11T20:18:26Z")

</div>

Hi! Could you expand on what you mean by “hide any directory”. Do you mean you don’t want your user to access anything outside their home directory? If so you’d have to do that at the operating system level by setting filesystem permissions to prevent read access.

If you want to completely hide them from the user that’s not possible (as far as I know, i’s possible there’s a way…).

---

<div class="post-metadata">

**Author:** ![rick63](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rick63](https://discourse.jupyter.org/u/rick63)\
**Post date:** [October 12, 2023, 8:47am UTC](https://discourse.jupyter.org/t/working-directory/21865/3 "2023-10-12T08:47:56Z")

</div>

I will operate across system level by setting filesystem permissione.  
I think that is the best solution.  
Thanks !
