Can't access /home/username/Music folder - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Can't access /home/username/Music folder (/t-can-t-access-home-username-music-folder) |
Can't access /home/username/Music folder - mcyzyk - 2024-09-09 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 RE: Can't access /home/username/Music folder - TheDreadPirate - 2024-09-09 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. RE: Can't access /home/username/Music folder - mcyzyk - 2024-09-10 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? RE: Can't access /home/username/Music folder - TheDreadPirate - 2024-09-10 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-local-storage-in-linux-linux-permissions-primer RE: Can't access /home/username/Music folder - mcyzyk - 2024-09-10 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.) RE: Can't access /home/username/Music folder - TheDreadPirate - 2024-09-10 (2024-09-10, 06:40 PM)mcyzyk Wrote: Thanks. 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 RE: Can't access /home/username/Music folder - mcyzyk - 2024-09-13 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. |