I just installed PMS on a fresh Ubuntu Server 16.04 LTS install and I would like to run Plex under a different user then 'Plex'. Should I just edit the /lib/systemd/system/plexmediaserver.service file? And then of course chown '/var/lib/plexmediaserver/'. As I am new to systemd I have some concerns about this.
- Will the plexmediaserver.service file not be overwritten when updating PMS? As then my run as user setting would be lost.
- Should I only chown '/var/lib/plexmediaserver/'? Or are there more folders that need different ownership?
- Is '/etc/default/plexmediaserver' not used at all and can it be ignored? As there are also configurable options in there.
Also, I noticed this error from systemd, should I be worried about that?
systemd[1]: [/lib/systemd/system/plexmediaserver.service:11] Invalid escape sequences in line, correcting: "/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server'"
- There is no folder called '/usr/lib/plexmediaserver/Plex Media Server' is that supposed to happen?
- Also the folder '/usr/lib/plexmediaserver' is owned by root, is that OK?
Who can clear some of this up for me? :)
Cheers!