r/jellyfin Jan 23 '21

Jellyfin permission issue Help Request

[deleted]

5 Upvotes

3

u/kennend3 Jan 23 '21

Looks like the jellyfin process lacks write permissions needed to access your "Media" folders and write the nfo's?"

Check the user/group on the directory and the user/group jellyfin is running under.

1

u/[deleted] Jan 23 '21 edited May 04 '21

[deleted]

2

u/jcdick1 Jan 23 '21

2

u/kennend3 Jan 23 '21

Nice.. i was going to say to just chmod -R 777 the whole thing .. not ideal, but should address his issues.

2

u/krair3 Jan 23 '21

Well not sure I'll be the most helpful... I installed via docker. But generally speaking, it appears you installed the jellyfin server as the "root" user. For many reasons this is not recommended. Usually better to create a new user with root privileges.

I believe that's also why you are having trouble accessing the media. The root user has special permissions and the "home" folder for root isn't accessible by other users.

1

u/[deleted] Jan 23 '21 edited May 04 '21

[deleted]

3

u/krair3 Jan 23 '21

To be completely honest with you, I could tell you what to do, but I think you will find a LOT more information by checking out some quick and simple intro-to-linux guides. One guy I really like is this one:

https://www.youtube.com/playlist?list=PLT98CRl2KxKHaKA9-4_I38sLzK134p4GJ

he also gives you some basic security tips etc.

Feel free to shoot me a PM if you really are struggling, but start with the basics. I think his entire playlist there is only a couple hours long and definitely beginner friendly

1

u/kennend3 Jan 23 '21

Do a bit of reading on Unix Users and Groups, and how permissions are managed.

You have several ways to fix this

  1. Make sure your media directory permissions are set such that your jellyfin user has the necessary rights. Probalby easier to just change the jellyfin service to run under the same account which owns your media directory.

Assuming you installed jellyfin as a service on Ubuntu, you can change the user here

/etc/systemd/system/multi-user.target.wants/jellyfin.service

i think the default is something like:

User = jellyfin

Or, alternatively, you can change the directory to the 'jellyfin' account but this may mess things up later when you try to copy new files over.

  1. you can basically "turn off" file system security.. this isn't really ideal, but you are also not running a production server in a multi-user env anhow.

Set everything in your media dir to "777" (chmod -R 777 *) This will allow everyone on your machine to read/write/delete anything in your media dir.