# Permission denied when create or write files in multi-user mode

**URL:** <https://discourse.jupyter.org/t/permission-denied-when-create-or-write-files-in-multi-user-mode/12436>\
**Category:** JupyterHub\
**Tags:** how-to, help-wanted\
**Created:** [January 4, 2022, 7:01am UTC](https://discourse.jupyter.org/t/permission-denied-when-create-or-write-files-in-multi-user-mode/12436 "2022-01-04T07:01:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qu123xxx](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/qu123xxx/32/6085_2.png) [@qu123xxx](https://discourse.jupyter.org/u/qu123xxx)\
**Post date:** [January 4, 2022, 7:01am UTC](https://discourse.jupyter.org/t/permission-denied-when-create-or-write-files-in-multi-user-mode/12436/1 "2022-01-04T07:01:14Z")

</div>

Hi, I deploy JupyterHub on docker use the multi-user Hub image from [here](https://hub.docker.com/r/jupyterhub/jupyterhub). I create 2 users(test\_user1, test\_user2) in jupyterhub admin panel and I can see 2 folder which named by username in /home.  
When I login jupyterhub as test\_user1, I just have write permission in my user folder like /home/test\_user1. When I write something in /home or /home/test\_user2, I get the following error:

```auto
[E 2022-01-04 05:07:01.191 SingleUserLabApp filemanager:464] Error while saving file: test_user1/Untitled.ipynb [Errno 13] Permission denied: '/home/test_user2/.ipynb_checkpoints/Untitled-checkpoint.ipynb'

    PermissionError: [Errno 13] Permission denied: '/home/test_user2/.ipynb_checkpoints/Untitled-checkpoint.ipynb'

[W 2022-01-04 05:43:34.136 SingleUserLabApp web:1787] 403 POST /user/test_user1/api/contents?1641275014131 (::ffff:172.17.0.1): Permission denied: Untitled Folder

[W 2022-01-04 05:43:34.136 SingleUserLabApp handlers:622] Permission denied: Untitled Folder

```

The same error happen will happen when I use some extension like tabnine which need to modify the package file in the installation folder of it.

I have try to run chmod 777 as root to make it can be written or read. But the error still happen. I’m not sure the permission issue is happen in JupyterHub level or OS system level and how to solve it.  
This is my configuration:

```auto
c.Spawner.default_url = '/lab/home'
c.Spawner.notebook_dir = '/home'
c.Authenticator.admin_users = {'test_user1'}
c.LocalAuthenticator.create_system_users = True
c.JupyterHub.authenticator_class = 'jupyterhub.auth.DummyAuthenticator'
c.DummyAuthenticator.password = " *******************************************"

```

Any help is appreciated~
