LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2021, 02:00 AM   #1
antonym
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Rep: Reputation: Disabled
User Groups and Permissions Help


I am setting up Jellyfin Media Server on new installation of Fedora 35.

Jellyfin requires access to library folders which hold movies, TV shows etc.

In the Jellyfin web GUI it states:

For Linux on Arch Linux, CentOS, Debian, Fedora, openSUSE, or Ubuntu, you must grant the service user at least read access to your storage locations.

I set up library folders in /home/my_user/jellyfin and have changed owner to jellyfin user and jellyfin group but JF tells me path not found.

I then set the library folders up in /srv directory, JF accepts this and the media server will stream to my TV properly.

Is it recommended (security) to run library folders from a root folder.....should I just leave it this way?

Can anyone point me in the right direction to correct for JF not seeing folders in my user directory?

Thank you.
 
Old 11-20-2021, 09:00 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
JF can't get to a directory under your home directory unless it can read your home directory.

You could put all the media in a directory owned by JF and give yourself group access rights
 
Old 11-20-2021, 11:01 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
According to FHS, /srv/jellyfin or /usr/local/share/jellyfin seem to be appropriate places for this sort of things.

Last edited by shruggy; 11-20-2021 at 11:15 AM.
 
Old 11-20-2021, 01:20 PM   #4
antonym
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Original Poster
Rep: Reputation: Disabled
smallpond:

As stated in OP, owner of library folders I attempted to use was changed to jellyfin, did not work.

shruggy:

I am feeling better about using /srv thanks. I just was not sure about security when using a directory owned as root for these library files.
 
Old 11-20-2021, 05:53 PM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
What was said was that the user running the service needed access to your home directory.
If you do 'ls -l /home' and look at your home directory permissions you probably see it has permissions such as 'drwxr-x---.' and that needs to be 'drwxr-xr-x.'

To understand permissions, it is really simple. The user trying to access a directory falls into 1 of 3 groups. Owner (also known as User), Group, and Other. That means that if the user under which jellyfin is running (jellyfin) is seen (from your users perspective) as not having either ownership or group membership then it is Other and you have to grant the Other user permissions r-x to pass through every level of the directory tree from the root (/) to the library in order to read those files. Any single level that blocks it will prevent access to everything below.

Last edited by computersavvy; 11-20-2021 at 05:56 PM.
 
Old 11-20-2021, 07:25 PM   #6
antonym
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Original Poster
Rep: Reputation: Disabled
OK, thanks for clarification, good learning for me. It is all simple when you know it of course.

Initially I put library folders in /home/my_user/Videos directory and gave permissions to Videos not home.

If library folders are in a /home directory does that mean my media server will lose access to them when computer logs out?

Maybe it's better for them to be in /srv after all?
 
Old 11-20-2021, 08:09 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by antonym View Post
Initially I put library folders in /home/my_user/Videos directory and gave permissions to Videos not home.

If library folders are in a /home directory does that mean my media server will lose access to them when computer logs out?

Maybe it's better for them to be in /srv after all?
No, as long as the system is up and the server is running it will have access to the library directory. It does not depend upon the user being logged in.

Using /srv with the proper permissions is quite acceptable as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User groups - manage groups Surka Linux - Security 7 05-01-2012 11:56 PM
groups within groups and sshd_config allow_groups td3201 Linux - Server 6 07-25-2009 09:43 AM
System Groups from Users and Groups measekite Linux - General 3 05-05-2009 09:22 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration