Hi again, Running 10.11.5 on Debian Trixie kernel 6.12.57 and I can’t get Jellyfin to see my connected drive. Here’s the permissions for my drive:
velummortis@velummortis-20bts1rt02:~$ ls -l /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f
total 240
drwxrwxr-x 2 velummortis video 4096 Sep 28 02:52 1-100
drwxrwxr-x 2 velummortis video 4096 Sep 27 20:29 'Bi Chun Mu - Dance in the Sky'
drwxrwxr-x 2 velummortis video 4096 Sep 27 16:46 Chor.Lau.Heung.1979.Complete.720p.WEB-DL.H.264.AAC-KMX
drwxrwxr-x 2 velummortis video 4096 Sep 27 20:17 'Dance of Breaking Sky (1980)'
drwxrwxr-x 2 velummortis video 4096 Sep 28 02:20 Dance.Of.Breaking.Sky.S01.1990.1080p.YT.WEB-DL.AAC.x264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 28 04:28 Deep.Rooted.Tree.1983.S01.SD.WEB-DL.AAC.AVC
drwxrwxr-x 2 velummortis video 16384 Sep 27 18:59 Empress.Myeongseong.S01.2001.1080p.YT.WEB-DL.AAC.x264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 27 13:32 Hong.Guk.Young.2001.S01.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 27 21:55 Jang.Hee.Bin.S01.1080p.WEB-DL.AAC2.0.H.264-Snowy
drwxrwxr-x 2 velummortis video 12288 Sep 27 16:21 'King Gwanggaeto the Great'
drwxrwxr-x 2 velummortis video 4096 Sep 29 01:00 Kings.woman.S01.NF.WEB-DL.1080p.H.264.AAC2.0
drwxrwxr-x 2 velummortis video 20480 Sep 28 01:25 Ladies.of.the.Palace.S01.1080p.WEB-DL.H264.AAC-AppleTor
drwxrwxr-x 2 velummortis video 16384 Sep 27 13:17 lost+found
drwxrwxr-x 2 velummortis video 4096 Sep 28 00:20 Namhan.Mountain.Castle.1986.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 12288 Sep 27 21:04 Queen.In.Hyeon.1988.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 36864 Sep 29 15:10 Story.of.a.Mermaid.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-MrHulk
drwxrwxr-x 2 velummortis video 20480 Sep 28 03:10 'Tears of the Dragon - 1996 - 159 - 480p'
drwxrwxr-x 2 velummortis video 4096 Sep 28 00:04 The.Imjin.War.1985.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 28 01:43 The.King.of.Chudong.Palace.1983.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 12288 Sep 28 06:07 The.Memoirs.of.Lady.Hyegyeong.1988.S01.1080p.WAVVE.WEB-DL.AAC2.0.H.264-unco@AvistaZ
drwxrwxr-x 2 velummortis video 4096 Sep 27 17:03 The.Royal.Road.S01.1991.480p.YT.WEB-DL.AAC.x264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 27 17:17 The.Tale.of.Lady.Ok.2024
drwxrwxr-x 2 velummortis video 4096 Sep 28 02:16 The.Young.Warriors.S01.1080p.WEB-DL.AAC2.0.x264-Cezane
drwxrwxr-x 2 velummortis video 4096 Sep 28 01:33 'Time of Dynasty (1990) [Complete] 1080p WEB-DL AVC AAC'
drwxrwxr-x 2 velummortis video 4096 Sep 27 19:56 Tragic.Grass.1992.S01.1080i.SBS.WEB-DL.AAC.H.264-RSG
drwxrwxr-x 3 velummortis video 4096 Dec 27 01:13 'Watched Series'
drwxrwxr-x 2 velummortis video 4096 Sep 28 03:30 West.Palace.1995.S01.720p.WAVVE.WEB-DL.AAC.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 28 02:06 'Wind and Cloud (1982)'
drwxrwxr-x 2 velummortis video 4096 Sep 28 00:12 Women.of.Legend.Hwang.Jin.Yi.1982.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 27 22:28 Women.of.Legend.Jang.Hee.Bin.1981.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 28 01:33 Women.of.Legend.Silver.Knife.1982.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG
drwxrwxr-x 2 velummortis video 4096 Sep 27 19:46 'Wu Ze Tian (1995) [Complete] 486p WEBRip AVC AAC'
video is the name of the group my username and jellyfin share drive access on. I have the group on 7 yet it won’t see my drive. Is there something I missed?
I had a hard time getting jellyfin to work on debian as well. I cant find the thread that helped me but I remember having to
sudo setfacl -R -m u:jellyfin:rx /path/to/libraryI looked this up from my bash history.I think I also had to chmod 0777 the media library as well.
I did find a link that shows a similar solution to the above from 2024. He does say that this solution is not optimal.
Tried the first command, didn’t work - I’ll see what the forum post does
I hope it works for you! It is not ideal, the permissions being 0777 especially if you want to open the server to the net. Could be problematic!
I don’t know why its so hard to get working on debian.
Not even using 0777 worked, jellyfin still couldn’t see
How is Jellyfin setup? In Docker?
No, straight from apt
What are the permissions on the directory itself, not the files? Is the directory owned by group ‘video’?
velummortis@velummortis-20bts1rt02:~$ ls -ld /media /media/velummortis /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f drwxr-xr-x 3 root root 4096 Oct 17 16:27 /media drwxr-x---+ 3 root root 4096 Dec 25 08:30 /media/velummortis drwxrwxr-x 34 velummortis video 4096 Dec 27 01:08 /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0fHere’s the permissions for the directory and parents - strangely enough Jellyfin can still see
/mediaand/media/velummortisdespite not owning themYes, it can see them because their parent directories are readable, but it can’t see anything inside /media/velummortis because the Other permissions are empty. If you run
chmod 755 /media/velummortisthen Jellyfin should be able to see those filesThis was it! Thank you!
Are the files within the folders the media folder also with permissions 775 (rwxrwxr-x)? The actual .mkv .mp4 or whatever files themselves should be the same permissions as the parent folder(s). Could be worth doing a chmod -R 0775 d64ea996-98aa-4eef-8a93-0a2ba2246f0f if you’re not sure.
You probably already tried this but just in case: In the Jellyfin admin pages, in Libraries, try removing that media library, then re-add the media library and when adding Folders paste in your entire media folder path/name: /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f
The reason I mention that is that I did a quick test here with a bad permissioned folder, added the media folder, Jellyfin couldn’t see anything in it obviously. But even after I fixed the folder permissions Jellyfin still wasn’t seeing the media - I had to remove the library entirely and then re-add it to force Jellyfin to attempt to scan the folder with new 775 world permissions.
I haven’t been able to add the library in question yet, but I did do the recursive chmod.
Example of a filelist:
velummortis@velummortis-20bts1rt02:~$ ls -l /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f/1-100 total 94369612 -rwxrwxr-x 1 velummortis video 976718800 Aug 7 2020 Jang.Hee.Bin.E001.mp4 -rwxrwxr-x 1 velummortis video 926402249 Aug 7 2020 Jang.Hee.Bin.E002.mp4 -rwxrwxr-x 1 velummortis video 970775362 Aug 7 2020 Jang.Hee.Bin.E003.mp4 -rwxrwxr-x 1 velummortis video 963500405 Aug 7 2020 Jang.Hee.Bin.E004.mp4 -rwxrwxr-x 1 velummortis video 975813578 Aug 7 2020 Jang.Hee.Bin.E005.mp4
What worked for me was to mount with fstab by UUID and set the group ID to your video group.
UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0
how do I format code here?
Four spaces before the line you want to codify :)
e.g.
UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0vs non-formatted
UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0
Okay update on this: I made a mistake in the fstab that made all the folders display at
/media/velummortis, and Jellyfin saw! But when I fixed fstab to go to the right path, it couldn’t see it all of a sudden…
Also using Debian + Jellyfin normal install with basic permissions (in the future maybe I’ll try this with ACL permissions).
Starting out I tinkered with creating a specific user group for jellyfin but it never quite worked right… in the end I reset the jellyfin user/service back to defaults and set permissions on my media folders to 0775 so that the jellyfin service can read/execute (no write) as the world permission bit. Also made sure to set permissions recursively (chmod -R). For me it’s fine though keep in mind setting 5 for world does mean all users with access to your system can read and traverse through those media folders.


