• 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 jellyfin + raspberry pi user permissions

     
    • 0 Vote(s) - 0 Average

    jellyfin + raspberry pi user permissions

    I have just set up Jellyfin on my raspberry pi 3b, and I'm having trouble with the user jellyfin not being able to access my external hard drive, where I have a samba share set up.
    joaorennato
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Brazil
    #1
    2024-10-07, 06:32 PM
    I have just set up Jellyfin on my raspberry pi 3b, and I'm having trouble with the user jellyfin not being able to access my external hard drive, where I have a samba share set up. I have added the jellyfin user to the sadmin group (which has access to my external drive), with:

    Code:
    usermod -a -G sadmin jellyfin

    and also added the jellyfin user and jelly group as an allowed on my /etc/samba/smb.conf file, like so:

    Code:
    path = /media/hd/samba/joao/Videos
    browseable = yes
    read only = no
    force create mode = 0660
    force directory mode = 2770
    valid users = jellyfin @sambashare @sadmin @jellyfin

    but I can't get it to access the external hard drive. The folder it's supposed to access is /media/hd/samba/joao/Videos/Filmes, but when I try to set it up in the web interface, it says it can not access the location.

    Any ideas?
    Thank you all in advantage!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-07, 07:28 PM
    What are the mount parameters you used in /etc/fstab?
    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]
    joaorennato
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Brazil
    #3
    2024-10-07, 10:23 PM (This post was last modified: 2024-10-07, 10:41 PM by joaorennato. Edited 1 time in total.)
    (2024-10-07, 07:28 PM)TheDreadPirate Wrote: What are the mount parameters you used in /etc/fstab?

    Hey there, thanks for replying!
    I used the line below, so it mounts automatically on boot.

    Code:
    UUID="5673be75-7594-43c1-be95-a8df86698565" /media/hd ext4 defaults,noatime,auto 0 0


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-10-08, 01:15 PM
    I re-read your post. Your Samba config has nothing to do with a local application accessing it. Samba is for remote hosts.

    What are the permissions on the folders? Copy and paste this command and share the output.

    Code:
    ls -ld /media /media/hd /media/hd/samba /media/hd/samba/joao /media/hd/samba/joao/Videos
    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]
    joaorennato
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Brazil
    #5
    2024-10-08, 03:26 PM
    (2024-10-08, 01:15 PM)TheDreadPirate Wrote: I re-read your post.  Your Samba config has nothing to do with a local application accessing it.  Samba is for remote hosts.

    What are the permissions on the folders?  Copy and paste this command and share the output.

    Code:
    ls -ld /media /media/hd /media/hd/samba /media/hd/samba/joao /media/hd/samba/joao/Videos

    Here's the output:

    Code:
    root@raspberrypi:/home/pi# ls -ld /media /media/hd /media/hd/samba /media/hd/samba/joao /media/hd/samba/joao/Videos
    drwxr-xr-x 11 root root      4096 Jan 18  2020 /media
    drwxr-xr-x  4 root root      4096 Jan 19  2020 /media/hd
    drwxr-xr-x  7 root sambashare 4096 Jan 14  2022 /media/hd/samba
    drwxrws--- 13 joao sambashare 4096 Apr 24 13:33 /media/hd/samba/joao
    drwxrwxrwx  5 joao sadmin    4096 Feb 18  2022 /media/hd/samba/joao/Videos


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-10-08, 03:34 PM
    Assuming that Jellyfin runs on this same host, Jellyfin does not have permissions to read beyond /media/hd/samba/joao.

    Can you confirm that Jellyfin is running on this same host?

    If so, adding r-x permissions for "others" on /media/hd/samba/joao should be enough.

    Code:
    sudo chmod o+rx /media/hd/samba/joao

    If that doesn't work, let me know.
    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]
    joaorennato
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Brazil
    #7
    2024-10-08, 07:10 PM
    (2024-10-08, 03:34 PM)TheDreadPirate Wrote: Assuming that Jellyfin runs on this same host, Jellyfin does not have permissions to read beyond /media/hd/samba/joao.

    Can you confirm that Jellyfin is running on this same host?

    If so, adding r-x permissions for "others" on /media/hd/samba/joao should be enough.

    Code:
    sudo chmod o+rx /media/hd/samba/joao

    If that doesn't work, let me know.

    I can confirm that it works and I'm now able to access my movie library!
    OMG, thank you so much for all your help!


    Attached Files Thumbnail(s)
       
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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