It looks like after a reboot the permissions were changed back from the 777. So, as you suggested I implemented the udev method above within the container, but I don’t have a video group on the NAS core system. I then manually created the video group, and I could change /dev/dri to admin:video, but I believe it will be changed back to admin:administrators after reboot. How can I make the device permissions sticky in the video group for /dev/dri and the devices within?
I changed my container per suggestions above, thanks for the tip ChuckPa! There’s no reason it can’t run as root as far as I can tell.
This is the best implementation IMHO. Easy to run as root, and keeps things secure in the container vs running as root on the QNAP system device via the qpkg. Given Plex doesn’t even have basic two-factor authentication, I want to keep Plex in a container where it’s isolated from the system.
The reason it can’t run as unprivileged or without modifying /dev/dri at startup is because QNAP didn’t give us udev.
If they had, I could write the /etc/udev/rules.d files to lower the privilege level to user plex just as I do on all the other NAS platforms and on Linux desktops.
This , and one other, are the two exceptions in the fleet we’re deployed on.