I am setting up a multimedia server on Debian 8.
I installed both Plex and Owncloud. I have set up /var/media
as my Owncloud default folder. I decided to create a folder Library
at the root of Owncloud. So the folder path is:
/var/media/admin/files/Library
I changed the permissions of media with:
chmod 770 -R /var/media
On top of that, all the files in /var/media
are owned by www-data:www-data
.
In order to make Plex see my medias, I have added the user plex
to the group www-data
. I would like to create a library watching my /var/media/admin/files/Library
folder but I have a problem, Plex doesn't see neither the files or folders in /var/media
. Here is a screenshot:
To finish, I have tried to connect on my server via ssh with the plex
user, and it sees files and folders inside /var/media
.
What am I doing wrong? Maybe it is not a permission issue? Thanks
Update
If I change the ownership of /var/media
to plex:www-data
, it works. But I can't understand why it doesn't work for www-data:www-data
. So it is well a permissions issue.
If I launch id plex
, I have:
uid=107(plex) gid=33(www-data) groups=33(www-data)
Just to remind, here are the permissions of /var/media
folder (full permissions for group...):
drwxrwx--- 4 www-data www-data 4096 Oct 30 09:01 media