What folder permission is required for library?

Server Version#: 1.21.0.3616

Hi,

I have a Plex and Nextcloud server installed on Synology. I would like Plex to be able to read my photos from the Nextcloud folder:

/volume1/web/nextcloud/data/…

Unfortunately I can’t give Plex access to this folder. This is only possible temporarily when I’m giving user ‘plex’ permissions to the ‘data’ folder in Synology and the files are recognized by Plex scanning. Folder permission settings are then:

drwxrwxrwx+ 1 http http 228 Oct 27 11:18 date

But it looks like Nextcloud resets this setting to:

drwxrwx— 1 http http 228 Oct 27 11:18 date

so after a while I lose access to the library.

I’ve added user ‘plex’ to the ‘http’ group, but still in this situation Plex doesn’t have access to the files either (which seems strange to me, because ‘drwxrwx— 1 http http’ indicates as if this access should be).

Is it possible to configure it somehow? Does the ‘plex’ has to be the folder owner?

Regards,
Daniel

The /volume1/web/ is a shared folder and Plex user has R/W permissions.

In the Plex Client app, when I browse library folders I can see the content of /volume1/web/nextcloud, but when I enter to /volume1/web/nextcloud/data it is showing empty folder. So the problem is with accessing this data folder, because everything above can be read by Plex.

No no, I mean in the Plex Client it is empty (when trying to add folder to the library):

It has about 500 GB of files, here is the File Station:

But the folder above “data” is readable by the Plex:

I am sorry, but I am misunderstood.

My goal is for the Plex to read images that are managed by Nextcloud. These Nexcloud photos are kept in one of the /volume1/web/data subdirectories. Specifically it’s /volume1/web/nextcloud/data/daniel/files/Photos There I have directories with photo files from my various events/holidays/etc.

And now it is, /volume1/web is a shared folder, which Plex user has access to. So theoretically it should also have access to the subfolders of that folder. And so it is, you can see in the above screenshots that the Plex client can read e.g. the /volume1/web/nextcloud directory.
The problem occurs when a Plex client tries to read one directory deeper, /volume1/web/nextcloud/data. When I select it in the dialog, the Plex client does not show its contents (screenshot in the previous post). And as I wrote before, I tried to set specificaly the user ‘plex’ to read this directory. And it worked. Then the Plex client could read the contents of the ‘data’ directory and in the dialog I could finally choose the deeper located photo directory. But unfortunately Nextcloud resets these access rights for the ‘data’ directory to such that only user ‘http’ and group ‘http’ have access to it. So after a while Plex client was not able to read photos. In that case I decided to add user ‘plex’ to the ‘http’ group in Synology. Unfortunately it doesn’t help, in such a situation Plex client still can’t read the data in this directory in the dialog (which makes me wonder a little bit, because the ‘data’ directory settings are reset to drwxrwx-).

A good general rule for permission problems, and this happens pretty frequently, is to open up everything and get it working first, then lock it down later. Age old approach: Solve one problem at a time. For example:

chown -R plex.plex /data/plex
chmod -R ugo+rwx /data/plex

Then see if it shows up in the dialog

Hence the term EXAMPLE. Adjust accordingly. Jeez.

PS - You have a tendency to be overly pedantic and it’s not actually helpful