• 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 Change permission on folders for Jellyfin in Ubuntu

     
    • 0 Vote(s) - 0 Average

    Change permission on folders for Jellyfin in Ubuntu

    Jellyfin can't read shared folder
    Worldrazor
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #1
    2024-02-16, 10:06 PM (This post was last modified: 2024-02-16, 10:06 PM by Worldrazor.)
    I've been trying to get Jellyfin to access my library, but it won't. I think I have narrowed it down to being a permission issue. I've tried to use the command 
    chown -R :lxc_shares /mnt/nas but without luck (it dosen't change anything). I have followed this guide (https://forum.proxmox.com/threads/tutori...es.101795/) to set up shares in my LXC. So basicly I think I need to change the ownership of the directory to the group where the jellyfin user is, but I don't know how.

    The permissions for the folders look like this:

    root@jellyfin:~# ls -l /mnt/nas
    total 0
    drwxrwx--- 2 100000 110000 0 Feb 12 13:48 Downloads
    drwxrwx--- 2 100000 110000 0 Feb 11 20:03 Movies
    drwxrwx--- 2 100000 110000 0 Jan 26 04:18 TV-Series
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #2
    2024-02-16, 10:07 PM
    With network shares you need to provide a UID and GID in the mount parameters that correspond to the owner of the files on the NAS side.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    Worldrazor
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #3
    2024-02-16, 10:11 PM (This post was last modified: 2024-02-16, 10:12 PM by Worldrazor. Edited 1 time in total.)
    I'm running it in a Proxmox LXC btw.

    It's mounted like this: mp0: /mnt/lxc_shares/nas_rwx/,mp=/mnt/nas which should have rwx permissions
    It's mounted on the host like this //111.111.11.111/Jellyfin /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=pveuser,pass=PASSWORD 0 0

    I have created a Group with the id 10000 where the jellyfin user has been added
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #4
    2024-02-16, 10:39 PM
    You can see your library on the command line, but jellyfin won't read it, correct?

    (2024-02-16, 10:06 PM)Worldrazor Wrote: root@jellyfin:~# ls -l /mnt/nas
    total 0
    drwxrwx--- 2 100000 110000 0 Feb 12 13:48 Downloads
    drwxrwx--- 2 100000 110000 0 Feb 11 20:03 Movies
    drwxrwx--- 2 100000 110000 0 Jan 26 04:18 TV-Series

    If that is the case, I think in the ubuntu you need to chown the library path so that jellyfin owns it or is the group owner and not 10000:11000.  Since the mount parameters will translate a lot of that.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    Worldrazor
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #5
    2024-02-16, 11:03 PM
    I have already tried that with this command: chown -R :lxc_shares /mnt/nas

    Also tried changing the group name to ID instead, but it dosen't change the permissions for the folder
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #6
    2024-02-16, 11:23 PM
    What are the permissions on the host system?
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    Worldrazor
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #7
    2024-02-16, 11:56 PM
    I fixed it! I created a new LXC and made it unprivileged. That apparently made the change
    « 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