Jellyfin Forum
Linux Jellyfin Permissions - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Guides, Walkthroughs & Tutorials (https://forum.jellyfin.org/f-guides-walkthroughs-tutorials)
+--- Thread: Linux Jellyfin Permissions (/t-linux-jellyfin-permissions)



Linux Jellyfin Permissions - Kwakers - 2025-05-09

Is your Jellyfin server not able to see the media files or directories.  You probably have a permissions issue.

Take a look at this https://github.com/Kwakers01/Jellyfin-Linux-Permissions.

Hopefully this and https://forum.jellyfin.org/t-mounting-local-storage-in-linux-linux-permissions-primer will get you working.

Then don't forget to check out https://github.com/Kwakers01/Jellyfin-Inhibit-Sleep


RE: Linux Jellyfin Permissions - Generator - 2025-05-09

Over complicated guide, forget Windows partitions on Linux, just use Linux partitions and add both user and jellyfin to same group

Code:
sudo groupadd media
sudo usermod -aG media $USER
sudo usermod -aG media jellyfin
newgrp media

Create a root path/folder and set default group to media

Code:
sudo mkdir -p /media/jellyfin
sudo chown :media /media/jellyfin
sudo chmod g+s /media/jellyfin
sudo chmod 2775 /media/jellyfin


Restart jellyfin service


RE: Linux Jellyfin Permissions - Kwakers - 2025-05-09

Thanks for the feedback.  I wish to preserve my Windows 10 ntfs drive to dual boot back to Windows if/when needed. e.g. using Geosetter (until I configure vm) and testing that everything I use on Windows has an app that I can use on Linux.  Hopefully over time I will move to fully Linux.

So anyone who is only using Linux (locally), your solution would possibly be simpler but you are pretty much doing what is in the 'local drive' section but with a group - adding the $USER and jellyfin to the 'media' group.

You are not addressing how to mount drives or partitions for people who need to mount a drive or a partition, which hopefully this post will help users with, if needed.


RE: Linux Jellyfin Permissions - Generator - 2025-05-09

(2025-05-09, 09:29 PM)Kwakers Wrote: You are not addressing how to mount drives or partitions for people who need to mount a drive or a partition, which hopefully this post will help users with, if needed.

No, on propose. 
If you don't have knowledge on Linux, mounting non-linux or remote partitions can be complicated, and more than one way to do it.

That's why mixing Windows partitions with Linux isn't a good ideia, could have issues with permissions, filesystem corruption, file dates...

I used to dual-boot (long time ago...) and managing Windows partitions (specially NTFS) on linux was painful, and sometimes filesystem corruption, exFAT was a better filesystem (because no journaling) if you want it to shared between Windows and Linux