Distributed credentials

stajo

Explorer
Joined
Jan 3, 2020
Messages
71
Hi. I want to ask for advice and comments about TrueNas credential settings and how to work with other systems. That may sound high profile but its really just a Plex setup at home.

What I aim to do is to have a couple of file shares on a TrueNAS Core-13.0-U4 platform containing different media, primary movies. I want to work with the content on the shares from Windows 11 computers and I want a separate (now Ubuntu Server 22.04.2) NUC to run Plex Media Server and play files to different platforms.
I have for some days regretted the choice of Linux for the media server because the fiddling with credentials and shares over the past days has been a mess. Maybe a Windows based platform for that would have been the better choice.

First, I tried with NFS shares (new experience for me) on the TrueNas and managed to create content on that one from the Ubuntu CLI that ended up on the actual TrueNas NFS share, just ordinary text files. But when it came to access that same share from Windows 11 I had to bite the dust. I tried like 100 online descriptions on how to do that but I failed.

Then I took away the NFS shares in TrueNas and made SMB shares instead. Working with the content from Win 11 went like a charm but having Plex Media Server reading from the SMB shares failed big time.

Plex Media Server creates a user on Linux called Plex, so for the SMB experiment I created a user in TrueNas called Plex and gave it access to the SMB share and I also gave the Ubuntu user, also named Plex, access to the mount point in Fstab. That did not work out, it didn’t help the Ubuntu Plex environment to access the access the SMB-share on TrueNas.

Now I have the same dataset shared both as SMB and NFS and I can actually put movies there from Windows and have the Ubuntu Plex Media Server read and play the files. It doesn’t feel like the best and safest solution, but it works.

I have two questions at the moment:
1. What would have been your solution to this? Run Plex Media Server on Windows instead and stick to SMB shares only?
2. How does it work with users and credentials for working between TrueNas Core and the mount points on (Debian based) Linux? If I create the same username on both platforms and give that username access to the share/dataset on TrueNas and to the Linux mount point, does it, or should it, get treated as the same user? Or how does one think there, regarding SMB access TrueNas to Ubuntu?
 
Top