Quantcast
Channel: Recent Discussions — Plex Forums
Viewing all articles
Browse latest Browse all 151235

Proper way to run Plex as another user with systemd [Ubuntu Server 16.04 LTS]?

$
0
0

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.

  1. Will the plexmediaserver.service file not be overwritten when updating PMS? As then my run as user setting would be lost.
  2. Should I only chown '/var/lib/plexmediaserver/'? Or are there more folders that need different ownership?
  3. 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'"

  1. There is no folder called '/usr/lib/plexmediaserver/Plex Media Server' is that supposed to happen?
  2. Also the folder '/usr/lib/plexmediaserver' is owned by root, is that OK?

Who can clear some of this up for me? :)

Cheers!


Viewing all articles
Browse latest Browse all 151235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>