Forums

Resolved
0 votes
I have my music in a Flexshare. The Flexshare has the following owner and permissions:


drwxrwx--- 1312 flexshares allusers 36864 Jun 16 08:59 music


The files:


drwxrwx--- 28 marcelvanleeuwen allusers 4096 Nov 12 2019 Toto


If I do:


[root@columbia shares]# groups plex
plex : plex video allusers users ftp_plugin


So Plex is part of the allusers group but for some reason Plex can't play the files. If I do chmod -R 777 on the Flexshare everything works. So is Plex no part of the allusers group because it accessing files via the others not the group. I'm missing something...
Wednesday, June 17 2020, 06:07 PM
Share this post:
Responses (8)
  • Accepted Answer

    Tuesday, June 23 2020, 07:08 PM - #Permalink
    Resolved
    0 votes
    Almost forgot @Nick,

    The solution I had was create a override.conf file. You can do this by doing "systemctl edit plexmediaserver".


    #
    # Customize Plex's config
    #
    # Identify this as a service override
    [Service]
    #
    # These values are only needed if you wish to change user & group
    #User=plex
    #Group=media


    Maybe you didn't know. For me it was new knowledge.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 21 2020, 12:47 PM - #Permalink
    Resolved
    0 votes
    Yes, third party access is also working nicely.

    For containers to access the Flexshares I can use "PUID" and "PGID". This gives the container a user and a group permission.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 21 2020, 10:48 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    I've just looked at the flexshares Third Party Access and it gives folders permissions 0755. Files are already 0664.


    Are you sure? I concluded in my test that the directory permission is 775 and the file permission 644.


    drwxrwxr-x 2 flexshares allusers 22 Jun 21 12:43 test
    -rw-r--r-- 1 root allusers 0 Jun 21 12:43 test.txt


    These permission are not enough for me because I need to write to the directories.

    For Plex usage it should be enough. It then uses the permission "other" r_x. Hmm I didn't notice before.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 21 2020, 10:26 AM - #Permalink
    Resolved
    0 votes
    I've just looked at the flexshares Third Party Access and it gives folders permissions 0755. Files are already 0664.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 21 2020, 09:14 AM - #Permalink
    Resolved
    0 votes
    I have a solution for the problem. I will update this thread when I'm completely sure that it is working.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 18 2020, 07:23 PM - #Permalink
    Resolved
    0 votes
    Your first output looks like a regular user account (LDAP), your second looks like a system account. Did you try setting a regular user called plex?

    Have you tried the "Allow third party access" option in the flexshare.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 18 2020, 06:22 PM - #Permalink
    Resolved
    0 votes
    That is strange!

    When I do:


    [root@columbia shares]# groups plex
    plex : plex video


    Now it has less groups! I'm pretty sure I did not add plex to the allusers group. Like you said it is even not possible but why the strange output in the post above???


    uid=991(plex) gid=1000(plex) groups=39(video),1000(plex)


    Did some searching but I haven't a clue how to solve this. The only way is to change the Flexshare app. Not sure what has to change I have to think about that. It is a bit strange that I can not add my media to a Flexshare.


    For now I made plex the owner of the media files.


    drwxrwx--- 1312 plex allusers 36864 Jun 16 08:59 music



    drwxrwx--- 28 plex allusers 4096 Nov 12 2019 Toto
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 17 2020, 08:32 PM - #Permalink
    Resolved
    0 votes
    What do you get from "id plex"? How have you got it a member of allusers? It is normally s system user so does not join allusers. I've also struggled with Plex permissions but I run mine outside flexshares. In the flexshare, have you enabled third party access?
    The reply is currently minimized Show
Your Reply