• 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 General Questions Directories and directory permissions

     
    • 0 Vote(s) - 0 Average

    Directories and directory permissions

    awake
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2023 Jul
    Reputation: 0
    Country:Germany
    #1
    2025-03-31, 03:12 PM (This post was last modified: 2025-03-31, 03:15 PM by awake. Edited 2 times in total.)
    Hello everyone! I've installed Jellyfin using Docker because setting it up with a compose file seemed to be the most straight forward way to do it. Howver, I've had some hiccups when it came to directory- and file-permissions.

    My compose file looks like the following with 1001 being the ID for my user and group (both having the same name (richard)):

    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin
        container_name: jellyfin
        user: 1001:1001
        network_mode: 'host'
        volumes:
          - /home/richard/jellyfin/config:/config
          - /home/richard/jellyfin/cache:/cache
          - type: bind
            source: /home/richard/cinema/Movies
            target: /media/movies
          - type: bind
            source: /home/richard/cinema/Shows
            target: /media/shows
            read_only: true
        restart: 'unless-stopped'
        # Optional - alternative address used for autodiscovery
        environment:
          - JELLYFIN_PublishedServerUrl=http://<my_ip>:8096
        # Optional - may be necessary for docker healthcheck to pass if running in host network mode
        extra_hosts:
          - 'host.docker.internal:host-gateway'
        devices:
          - /dev/dri/renderD128:/dev/dri/renderD128 # I use this because I'm using QSV and have to use it according to the documentation, right?

    As you can see, I'm mounting the media from the home directory. I'm at the same time I'm accessing the cinema directory from a computer with a user with elevated priviledges ("admin"). The problem occurs if I paste a file from my computer (via SMB, macOS is not particularly great in this area it seems but I diverge) into the cinema directory, it's being pasted with "admin" as user and group. This leads to "richard" not being able to play the file in Jellyfin and I have to chmod the newly added files/directories to be able to play the files.

    Should I move the entire mount point to a more public space such as /media and will this even solve my problem?
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Directories and directory permissions - by awake - 2025-03-31, 03:12 PM
    RE: Directories and directory permissions - by TheDreadPirate - 2025-03-31, 03:31 PM
    RE: Directories and directory permissions - by awake - 2025-03-31, 03:42 PM
    RE: Directories and directory permissions - by TheDreadPirate - 2025-03-31, 04:03 PM

    • 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