Plex won't see files added via SMB share

I set up a TrueNAS Scale server and am running Plex as an app on the TrueNAS server directly.

The Plex app is running as root and has direct access to the Plex share itself.

Anytime I add a new file to the Plex share via SMB, Plex cannot see the file unless I change the owner from the SMB user to root. Once I do this everything works perfectly.

When I add files, the new files are owned by the SMB user.

I don’t know how to configure this so that files have the correct permissions to show up on the Plex server automatically.

I am sure I screwed up something stupid and would appreciate some help in sorting this out.

Thanks!

Are you using SMB/NFSv4 or Posix permissions on the dataset?

POSIX

I would suggest moving to SMB/NFS instead since you are using SMB. Much easier to manage.

Give full permissions to your user and apps(568) and push the permissions recursivly.

Set the PUID, PGID, PLEX_UID and PLEX_GUID env variabels to 568.

Experiment on a test dataset until you get comfortable managing the permissions and got it to work the way you want.

1 Like

I wish I would have known this was possible, but I just went with the defaults.

Would have been so much easier had I done this before moving over the 40TB of worth of movies on the Plex server.

That said I fixed it.

The default mask was wrong, here is how I fixed it:

setfacl -m default:mask::rwx /mnt/Plex/Media
1 Like