Plex has no access to new files copied using Samba

NightWatcher

Cadet
Joined
Dec 14, 2023
Messages
7
Hi, I am running Truenas Scale 23.10.1 with Plex 1.32.8.7639 and Samba.
I created a plex user, and created a Media Dataset, and made plex the owner.
I shared the Media folder via Samba, and gave my user "joelle" access to it.
When I copy files to the Media folder, they are not detected by Plex Server even after using "Scan Library"
If I go the Dataset permissions and re-apply ownership recursively to the plex user, the files show up in plex.
The problem is that I have to do that to each new file I copy in order for it to appear.
I have attached screenshots of all my configurations.

I would appreciate your input on this.
 

Attachments

  • 1703631203299.png
    1703631203299.png
    450.8 KB · Views: 76
  • 1703631242925.png
    1703631242925.png
    56.4 KB · Views: 77
  • 1703631316062.png
    1703631316062.png
    210.1 KB · Views: 72
  • 1703631349278.png
    1703631349278.png
    306.5 KB · Views: 67
  • 1703631402869.png
    1703631402869.png
    42.9 KB · Views: 59

flmmartins

Dabbler
Joined
Sep 19, 2022
Messages
31
Hello,

What I did for Plex after struggling with user permissions was:

Create environment variable for Plex in the extra variable section:

PLEX_UID = 568
PLEX_GID = 568

Where 568 is your apps user BUT it can be any UID. For example if you created a PLEX user you have to discover the ID of the user and put it there.
 

NightWatcher

Cadet
Joined
Dec 14, 2023
Messages
7
Hello,

What I did for Plex after struggling with user permissions was:

Create environment variable for Plex in the extra variable section:

PLEX_UID = 568
PLEX_GID = 568

Where 568 is your apps user BUT it can be any UID. For example if you created a PLEX user you have to discover the ID of the user and put it there.
Thank you for your answer. By default plex user has a UID and GOD of 1000. Manually changing the owner of the files to plex enables plex to access the files. My issue is because user joelle is using samba to add the files, the files are now owned by joelle and plex can't access them despite the directory being owned by plex.
 

flmmartins

Dabbler
Joined
Sep 19, 2022
Messages
31
Thank you for your answer. By default plex user has a UID and GOD of 1000. Manually changing the owner of the files to plex enables plex to access the files. My issue is because user joelle is using samba to add the files, the files are now owned by joelle and plex can't access them despite the directory being owned by plex.
Ah! I see! Sorry

I solved this by going to dataset and enabling ACLs. That allowed me to set FLAG inherit like below.

That makes the permission to be set every time you move a file inside the share.



Screenshot 2023-12-27 at 17.58.50.png
 

NightWatcher

Cadet
Joined
Dec 14, 2023
Messages
7
I think that is the solution I am looking for, however my interface looks very different from yours, any ideas how I can set the flag to inherit?
1703715940272.png
 

NightWatcher

Cadet
Joined
Dec 14, 2023
Messages
7
ok wait I got the same menu I needed to go into the dataset setting and change the share type to SMB to get the right ACL settings
 
Top