I’m not sure what best practices are on the QNAP, but typically in linux, I would want to change the user that runs the server and give that user specific access to my media, etc. I noticed that PMS is running as admin which is root on my QNAP.
I realise this is an old thread but please allow me the opportunity to show my ignorance!
The admin user is disabled on my QNAP and, even if enabled, has no access to the directories containing my video files. Nevertheless Plex is running and can play and delete those files.
I had to re-enable admin to connect to the shell prompt and, sure enough, the Plex processes are running in the admin user. How does that work if the user is disabled? I wondered if disabling the user just disables the ability to log on as that user but the question of how it has RW access to files in directories to which the admin user has no access remains.
(This is a step on my way to try to allow Plex read-only access to those few directories containing video I don’t want deleted.)
PMS runs as the admin user (root) which does not need or use access permission. The reason it runs this way is because QNAP does not include the su utility program (needed to launch as a specific user) in their firmware. Several requests have been made but it has not yet been added. If/when they do, it will be possible to prevent PMS users from deleting media ‘by accident’.
If you’ve placed your media in the Multimedia share and have the Codex Pack installed, these two are the problems for it not finding your media. They are both application interfaces and not the true location. Creating a real Movies share, accessed as /share/Movies gives PMS what it needs as providing a common, universal access point to wherever you end up creating the share (or moving it to later if ever needed)
The Multimedia share is highly frowned on for this reason (See the FAQ at the top of this forum). The Codex Pack 4.5.0 modifies directory names which thoroughly confuse PMS. It is also highly discouraged. (See the announcement at the top of this QNAP forum)
@kevinjw said:
I realise this is an old thread but please allow me the opportunity to show my ignorance!
The admin user is disabled on my QNAP and, even if enabled, has no access to the directories containing my video files. Nevertheless Plex is running and can play and delete those files.
I had to re-enable admin to connect to the shell prompt and, sure enough, the Plex processes are running in the admin user. How does that work if the user is disabled? I wondered if disabling the user just disables the ability to log on as that user but the question of how it has RW access to files in directories to which the admin user has no access remains.
(This is a step on my way to try to allow Plex read-only access to those few directories containing video I don’t want deleted.)
Thanks.
Kevin
the admin user was never disabled, the ability to log in (or interact) with it was - beyond that, it functions as normal.
@ChuckPA said:
PMS runs as the admin user (root) which does not need or use access permission. The reason it runs this way is because QNAP does not include the su utility program (needed to launch as a specific user) in their firmware. Several requests have been made but it has not yet been added. If/when they do, it will be possible to prevent PMS users from deleting media ‘by accident’.
If you’ve placed your media in the Multimedia share and have the Codex Pack installed, these two are the problems for it not finding your media. They are both application interfaces and not the true location. Creating a real Movies share, accessed as /share/Movies gives PMS what it needs as providing a common, universal access point to wherever you end up creating the share (or moving it to later if ever needed)
[snip]
OIC.
Plex has no problems finding my media, I had the opposite question - how does it find my media when I have disabled admin access to the relevant directory - but you’ve answered that and trudge answered my question about disabling the user. Thank you both.