So, I'm new to the Freenas community and have setup Plex Media Server in a seperate jail and created the mount points. I followed the guid to create the user "plex" with UID 972 outside of the jail and set it as Owner of the dataset containing the media.
This worked, plex can read the data and add it to its library, the owner of the directories/files is set to Plex.
BUT, when I add new content through SMB share on Windows, ie. download something and move it to the share(dataset), the owner of the directory/file is root. Plex does not see this new content and will not add it.
Output of getfacl on the dataset in Freenas:
root@freenas[~]# getfacl /mnt/DATA/DATA
# file: /mnt/DATA/DATA
# owner: plex
# group: wheel
owner@:rwxpDdaARWcCos:fd-----:allow
group@:rwxpDdaARWcCos:fd-----:allow
user:beats:rwxpDdaARWcCos:fd-----:allow
everyone@:--------------:fd-----:allow
Output of the getfacl inside the jail mountpoint:
root@Plex:/mnt # getfacl X264
# file: X264
# owner: plex
# group: wheel
owner@:rwxpDdaARWcCos:fd----I:allow
group@:rwxpDdaARWcCos:fd----I:allow
user:1001:rwxpDdaARWcCos:fd----I:allow
everyone@:--------------:fd----I:allow
So, plex is owner on both sides, but still it cannot read content uploaded through the SMB share on my windows desktop.