Today I’m not gonna talk about my experience between those, but instead I’m going to share with you on how to change Linux user that runs Plex.
By default, Plex run under
plex user. This can be neat, but not in my case. I constantly had to moving and rename files and since I am using my Linux as another user, it was not an efficient way to do this.
So I am thinking, why don’t I run Plex under the same user as I am using on my Linux now?
Edit systemd script
First, you need to stop Plex
$ sudo systemctl stop plexmediaserver
Then edit systemd unit file.
You shouldn’t edit the file directly because it will be rewritten when an update happened. Instead we going to use
$ sudo systemctl edit plexmediaserver
Then add this configurations. Replace use
group according your like
[Service] User=user Group=group
Reload the changes
$ sudo systemctl daemon-reload
Edit Plex configuration
We also need to edit Plex configuration file
$ sudo nano /etc/default/plexmediaserver
PLEX_MEDIA_SERVER_USER to the user you want to use
Save and close the editor to proceed
Change permission of Plex files
You need to change the owner of Plex files. Replace the
group to your new user and group
$ sudo chown -R user:group /var/lib/plexmediaserver
You also need to change the owner of your movies to your new user
You are pretty much done by now.
$ sudo systemctl start plexmediaserver
Add new path to Plex
Depends on your setup. You might need to add your new movie and series path to your plex and scan the libraries.