Jellyfin Forum
Sharing subset of media library to guests - symlinks in Docker? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Sharing subset of media library to guests - symlinks in Docker? (/t-sharing-subset-of-media-library-to-guests-symlinks-in-docker)



Sharing subset of media library to guests - symlinks in Docker? - zff - 2023-11-02

I want to share parts of a library to different guests. Allowing guests access to certain libraries doesn't really make sense as that would mean I would have to potentially break up e.g. a TV series into arbitrary media libraries to share to guests if I don't want them to view the entire series.

Using symlinks to link subdirectories of the root directory for the media library should work, right? Can someone provide an example for how to set this up with Docker? preferably via docker-compose.yml as opposed to command line arguments.

For example, I have /data/media-libraryConfused-facemedia/media-library for docker-compose.yml and then want to share /data/media-library/vacation-pics/europe from the host to Jellyfin running in Docker. I just want to be able to create/delete a symlink on the host system to add/remove access to subdirectories in the media library (I suppose doing this on the host side is the simplest).

Much appreciated.


RE: Sharing subset of media library to guests - symlinks in Docker? - bitmap - 2023-11-02

As far as I know, symlinks must be made on the host using the terminal. You would create a separate structure, say /media/sym/userA and symlink anything you want User A to have access to within that folder, of course following the prescribed structure for the libraries you want to add.

In docker, you'd mount that as an additional volume:

Code:
/mnt/sym/userA:/mnt/sym/userA

I wouldn't recommend using the same root folder unless your libraries are more broken down than that. In any case, create your symlinks (ln -s <source> <dest>) in a separate + mirrored area so that you can create a library and provide access to only that individual from within the Jellyfin dashboard. If you really want to use the same root folder, I'd separate out into global, userA, etc... For example, you could create a structure using paths such as:

Code:
/mnt/media/global/TV
/mnt/media/global/movies
/mnt/media/userA/TV
/mnt/media/userA/movies

Then create your symlinks from global > userA and generate a library for each.