• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access Directory and file rights

     
    • 0 Vote(s) - 0 Average

    Directory and file rights

    Missing items in Debian
    Andyroo
    Offline

    Junior Member

    Posts: 21
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    #1
    2024-01-17, 03:54 PM
    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.
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2024-01-17, 04:39 PM (This post was last modified: 2024-01-17, 04:40 PM by tmsrxzar. Edited 1 time in total.)
    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
    Andyroo
    Offline

    Junior Member

    Posts: 21
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    #3
    2024-01-17, 05:43 PM
    @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...
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #4
    2024-01-17, 05:53 PM
    (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."
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-01-17, 06:16 PM
    What are the mount parameters for this SMB share?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode