Jellyfin Forum
Directory and file rights - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Directory and file rights (/t-directory-and-file-rights)



Directory and file rights - Andyroo - 2024-01-17

I'm currently using 10.8.13 on Debian Bookworm on an old i5 Shuttle box and found that I have had to set the directories AND files to 777 for everything to be picked up.

Jellyfin is installed directly on the OS (not using Docker at this time) and processes run under user Jellyfin - I made no changes to groups or install as far as I remember.

Movies etc are copied from my Mac via a Samba share:
Code:
[Jellyfin Media]
  path = /mnt/WDRed4TB/Media
  browsable = yes
  writable = yes
  read only = no
  only guest = no
  create mask = 0777
  directory mask = 0777
  Guest ok = no

under user andrew

and are created with a user and group of andrew:andrew correctly (well as expected).

Despite 'Other' having read access, some items do not seem to show up till I have chmod'd them. Currently I've hit them with a blanket 777 (yes I know very bad - I'm blaming me wanting a quick fix) and everything appeared at a refresh.

This gives me:
Code:
drwxrwxrwx 3 andrew andrew 4096 Dec 31 23:06 'Home Movie 2020'
and
drwxrwxrwx 2 andrew andrew        4096 Jan  3 22:19  extras
xrwxrwxrwx 1 andrew andrew 38270219796 Dec 31 17:20 'Home Movie 2020.mkv'

I think it was the write access that caused me the issue but I cannot see why Jellyfin needs that to the files...

Anyone any ideas - I could not find a specific security requirement and obviously plan to take the executable off the files next.


RE: Directory and file rights - tmsrxzar - 2024-01-17

jellyfin needs to be either the owner of the files or part of the owning group

add jellyfin to group 'andrew'
usermod -a -G andrew jellyfin

or change the owner of the files
chown -R jellyfin:(jellyfins group) files/


you may also need allow_other in your mount, you didn't note how you are mounting though


RE: Directory and file rights - Andyroo - 2024-01-17

@tmsrxzar - Forgive me but not convinced as the files are playing fine now.

The 'Other' group security rights kick in if the object is owned by the process owner or they are a member of the same group that the object has.

Backup is taking ages today - think the destination is a little full but will have play later...


RE: Directory and file rights - tmsrxzar - 2024-01-17

(2024-01-17, 05:43 PM)Andyroo Wrote: @tmsrxzar - Forgive me but not convinced as the files are playing fine now.

you made no indication of a playback issue in your initial post, the only thing i saw is that jellyfin couldn't list files; "for everything to be picked up."


RE: Directory and file rights - TheDreadPirate - 2024-01-17

What are the mount parameters for this SMB share?