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.04k stars 341 forks source link

Regarding a shared read/write folder where anyone can edit files #695

Closed Prakh-AL closed 3 years ago

Prakh-AL commented 3 years ago

Hey everyone! I am using the shared folder setup based on the TLJH guide. But I have a couple of questions:

  1. When I move files or folders into the shared folder, other users can read or execute them but can't modify. Is there any permanent solution for this other than changing permissions every time a new folder/file is moved/created.
  2. Other users can duplicate files(notebooks etc) but when they try to duplicate a folder a permission denied error pops up. But weirdly enough, if they try to move the folder directly, it still shows the error, but creates a duplicate with all the files into the destination folder.
welcome[bot] commented 3 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:

consideRatio commented 3 years ago

This question regards documentation at https://tljh.jupyter.org/en/latest/howto/content/share-data.html#option-3-create-a-directory-for-users-to-share-notebooks-and-other-files.

All users will have read/write access to the shared folder itself, but if anyone copies a file to that folder, that file itself will have certain permissions that isn't overridden by being part of a folder. There is no way around that to my knowledge.

Question 2 is too specific to the user interface to be addressed here.


To conclude, I see no clear solution to creating a read-write folder for everyone to use. If someone has ideas on how a read-write folder for everyone to use can be done in a nice way, please do comment or open a new issue! I'll close this one as resolved for now.

Btw, I think admin users that have sudo rights can use sudo to change the permissions on files, so you could do that also I guess, making the files added be writable by everyone.