jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.05k stars 343 forks source link

Permission denied notification and adjust move path #814

Open topicarm opened 2 years ago

topicarm commented 2 years ago

Bug description

Hello,

We are preparing several Python courses for children and we chose TLJB because it is very user-friendly and can be easily managed by the administrators.

Although I am very happy with the solution, I have one problem and one question, that I have tried for hours to solve, but without success (mostly first one..):

  1. PROBLEM > I created a read-only shared folder in Linux and created a link to each user's /home so I can always update the learning content for the kids. Everything works fine, the kids can see, access and read the shared folder. The idea is that they always move the lesson they need to their home folder so they can edit it. The only problem is that every time the user moves something from the shared folder to the /home folder, JuypterHub gives the error message "Permission denied" (this is also seen in the server logs), but then when you click "OK", the file is still moved to the /home folder. It works, but it's very annoying/confusing for the kids. Is there any way to fix this or turn off the notifications?

  2. QUESTION > The second thing is not really a problem - I just want to ask if it is possible to change the default folder of the "move" path (when user presses "Move" button to have some other path). I would like it to always point to the user's /home folder. Any ideas?

Thanks a lot!

Expected behaviour

Described above.

Actual behaviour

Described above.

How to reproduce

  1. Have a read-only folder.
  2. Have a user without write-permission for this read-only folder
  3. Move anything inside this read-only shared folder to your /home folder

Your personal set up

The-littlest-jupyterhub, standard setup, installed with instructions.

Full environment ``` # paste output of `pip freeze` or `conda list` here ```
Configuration ```python # jupyterhub_config.py ```
Logs ``` # paste relevant logs here, if any ```
welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: