• 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 Can't access /home/username/Music folder

     
    • 0 Vote(s) - 0 Average

    Can't access /home/username/Music folder

    mcyzyk
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #1
    2024-09-09, 09:07 PM
    Hi, I'd really like to use Jellyfin (longtime Subsonic user, short time Airsonic user here...),

    Everything is set up, but when I go to map a Folder to my Music it fails.

       Ubuntu Noble, fully up to date
       /home/ in ZFS pool
       Music files in conventional place for Ubuntu:  /home/username/Music

    Moving my Music to some other place on the file system is not an option.

    I've been around and around, setting permissions, changing ownership, etc. 

    No joy!

    How can I get Jellyfin to map a music folder to /home/username/Music ?

    Much appreciated,

    Mark
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-09, 09:16 PM
    Files that need to be accessed by other users should be located in your home directory. You need to move your files out of your and into a directory that is ok to make accessible to other users. Like /media or /mnt.
    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]
    mcyzyk
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #3
    2024-09-10, 01:21 PM
    Thanks.

    There are no other users -- just me!

    How can Jellyfin access my music files in?: /home/username/Music

    Would a symbolic link work to, say, /media or /mnt?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-09-10, 02:33 PM
    Jellyfin runs as the jellyfin user, so there are other users involved from a permissions standpoint.

    Symbolic links do not bypass the permissions of the linked path. And you should not open up the permissions on your home directory. You may not know they are there, but there are a lot of private and sensitive files in your home directory that should not be opened up to other users.

    Read my Linux permissions primer.

    https://forum.jellyfin.org/t-mounting-lo...ons-primer
    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]
    mcyzyk
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #5
    2024-09-10, 06:40 PM
    Thanks.

    Jellyfin not being able to access /Music/ in my home directory (with proper ownership and permissions) is a non-starter for me. Never had this issue with Subsonic or Airsonic. Someone must have specifically hardcoded this "rule" into Jellyfin?

    (Home directory. If I want to share files with other Users on the system, I create a new folder (/shared/), set the permissions so they can at least Read it, and we're off to the races -- whether it's under my personal home directory or not.)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-09-10, 06:57 PM (This post was last modified: 2024-09-10, 06:57 PM by TheDreadPirate. Edited 1 time in total.)
    (2024-09-10, 06:40 PM)mcyzyk Wrote: Thanks.

    Jellyfin not being able to access /Music/ in my home directory (with proper ownership and permissions) is a non-starter for me.  Never had this issue with Subsonic or Airsonic.  Someone must have specifically hardcoded this "rule" into Jellyfin?

    This is a Linux thing.  Not jellyfin.  Looking at Subsonic's page, it appears that Subsonic runs as root by default.  Meaning it can access anything anywhere.

    Jellyfin runs as its own user.

    (2024-09-10, 06:40 PM)mcyzyk Wrote: (Home directory.  If I want to share files with other Users on the system, I create a new folder (/shared/), set the permissions so they can at least Read it, and we're off to the races -- whether it's under my personal home directory or not.)

    Symlinks do not bypass the permissions of the linked folder.  Having a "shared" folder in your home still requires that you open up /home/<yourUser>.

    What you could do is move your music to /media, or whatever directory you want that isn't your home directory, then symlink THAT folder into /home/<yourUser>.  This way Jellyfin has access to your music, you don't have to open up permissions on your home directory, and your music appears to still be in /home/<yourUser>/Music
    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]
    mcyzyk
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #7
    2024-09-13, 04:45 PM
    Hoping this can help someone else:

    Simple solution -- I created a symlink to the music on my home directory and pointed Jellyfin there:

    /mnt/jellyfinMusic

    Access is via usual Linux ownership/permissions. (I granted Jellyfin Group ownership to my music...)

    Working great.
    « 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