How to manage folder permissions in this case? Jellyfin accesing Nextcloud files folder

I installed Jellyfin but I can’t add a folder from a nextcloud user as a media library, it doesn’t seem to be able to access it. Is there any way to tweak Nextcloud folder’s or Jellyfin’s permissions to allow this?

I guess you need to add Jellyfin user to group www-data.

1 Like

is there a command to do that?

sudo usermod -a -G groupname username

Also add it to users as well, if it’s not already there

Adding to multiple groups
sudo usermod -a -G group1,group2 username

What is the owner/group of the nextcloud directories?

1 Like

All folder should be owned by web server user www-data

1 Like