Server Version#: 1.13.5.5332
Player Version#:
Hi all,
I’ve been toying with the DVR feature from my HDHomerun Quatro of the past couple of days but I can’t seem to figure out permissions. I have my library hosted on my Freenas box running 11.1-u6 and my Plex server installed on Ubuntu 18.04. I’ve followed advice to make sure that the plex user and groups match up UID and GID on the server install and the Freenas box.
This is the output from my server install and I created a plex account in Freenas with UID 111 and a group account of plex with GID 113. My media folder on Freenas is group owned by plex and I did set that recursively.
From what I’ve been reading, as long as the plex user in Freenas is in the owning group of my share, I should have write capability. However when I try to record from my guide in Plex, I’m consistently getting a “No Write Access” error when I try to record something.
Can someone please point out what I may be doing wrong here?
The user plex is in the group plex and the group plex owns my shares. So as far as I can tell, I have FreeNAS setup as your instructions suggest but I still can’t record. I’m using the TV Shows directory for DVR until I get this worked out so you can just ignore the DVR directory.
Doesn’t FreeNAS use a jail or other such container mechanism?
I don’t use FreeNAS but seem to remember it has similar constraints as a Docker container would and therefore mapping needs to occur somewhere in that process.
Yes, FreeNAS does offer a jail to run Plex in. In my case I have a separate piece of hardware that I’m running my Plex server on. FreeNAS is just hosting the files for which my Plex server is connecting.
The issue was that the share was being mounted as root:root. I found out how to change this in my fstab entry so that the mount would be for plex:plex.
Notice the difference between the DVR share mount and the media share mount is uid=plex,gid=plex. This will give PMS the write permissions, as the plex user, necessary to save to my NAS.
Just for reference for anyone else who comes across this thread. This is what my permissions look like. I left the media mount as root:root because nothing on the system where I have PMS installed needs to write to that share. But you can see how the DVR share was mounted as plex:plex permissions.
Sorry, I don’t think I’m fully understanding what you’re saying.
The post you are referencing is basically saying that in order for PMS to have permissions you want on the directory you’re writing to, it needs to be either the user that owns it or in the group that owns the directory.
In my case, the DVR directory is over the network and on a NAS. When I’m mounting the NAS in /etc/fstab on my Ubuntu plex server I’m using credentials for the user that owns the DVR directory. So that should give me write permissions on the NAS.
As I understand, /etc/fstab is run as root. so in order to give the mount directory on my plex server the correct permissions for PMS I declared the user and group in the /etc/fstab entry. Otherwise, it mounts as root:root which doesn’t allow PMS the permissions needed to write.
This does work for me so I’m not understanding what it is you’re stating that I’m doing incorrectly?
Use sec=sys and use the UID/GID matching method where there exists a username plex and group plex on the NAS with the same UID & GID as the PMS host
or
You create user plex and group plex on that NAS, give it write permission to those shares, but omit the sec=sys option.
What I am saying is:
PMS must have permission to write to any directory it is going to write to, whether that be to create new directories for the movies or new directories for the series.
You can “shotgun” this by performing a chmod -R 777 on the NAS side. This disables all sense of ownership but will soon come back to haunt you as ownership gets out of control.
This is why I have taken the time to show how to have PMS create entrries automatically which comply to the first permissions you applied.
As long as I have a plex:plex on my NAS which matches the UID and GID of plex:plex on my PMS server this will work? I don’t need to supply a credentials file on the entry?
I’m not seeing this as an example in your documentation. This is why I’m so confused here.
Does FreeNAS (being unix) not offer NFS share exports? CIFS is not very compatible with Linux at all.
Please go into the sharing settings in the NAS and enable NFS if it has it.
You will then be able to use NFS share mounting as I show.