# User does not change

**URL:** <https://forums.plex.tv/t/user-does-not-change/219494>\
**Category:** Apps & Creations\
**Tags:** server-linux-arm\
**Created:** [December 29, 2017, 10:01pm UTC](https://forums.plex.tv/t/user-does-not-change/219494 "2017-12-29T22:01:14Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 29, 2017, 10:01pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/1 "2017-12-29T22:01:14Z")

</div>

I have been trying to get plex to work on my raspberry pi. I have followed the instructions here: **removed link to bad tutorial by mod**  
It works great up until where I need to change permissions. I need to change the permissions because the hard drive that is hooked up to it is owned by pi. However when I change the user to pi and restart the service. It does not ever run plex media server as pi, only as plex.  
I need help, thank you in advance. I can’t find anything helpful online.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 29, 2017, 10:20pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/2 "2017-12-29T22:20:42Z")

</div>

@uglymagoo can help you better but that procedure was obsoleted over a year ago when `systemd` related `init` as pid 1.

I have created `Linux Tips` for help with such things as you wish to do now. [https://forums.plex.tv/categories/linux-tips](https://forums.plex.tv/categories/linux-tips)

Of specific interest to you is customizing your Plex configuration. [https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration](https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration)

---

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 30, 2017, 12:41am UTC](https://forums.plex.tv/t/user-does-not-change/219494/3 "2017-12-30T00:41:40Z")

</div>

Thank you so much for your help. I have followed the instructions in the customizing your plex configuaration page, and I have made progress with my plex server. It now starts a few of the processes as pi, but a few of the processes that were running when it was under plex are not there. I cannot see the server from the browser. It starts /usr/lib/plexmediaserver/plex media server, but it does not start the plex plug-in, plex dlna server, plex tuner service, or a second second plex plug-in.  
I only know this because if I change it back to plex, those are the processes that start running. When I change it back to pi, I only get one.  
I am assuming it has something to do with permissions, but I don’t know on what. Do you have any suggestions for me?  
I really appreciate your help. I actually feel like I am learning a lot about linux and what goes into a server.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 30, 2017, 12:53am UTC](https://forums.plex.tv/t/user-does-not-change/219494/4 "2017-12-30T00:53:11Z")

</div>

do you have enough functionality to get the Plex logs from PMS? (settings - server - help - download logs)

if not, `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs` contains everything I might need in addition to

`sudo journalctl -xe | grep -i plex`

---

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 30, 2017, 2:13am UTC](https://forums.plex.tv/t/user-does-not-change/219494/5 "2017-12-30T02:13:20Z")

</div>

I do not have enough functionality to download the logs, and /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs is empty. However, this is my journalctl output:

Although I just thought of something that might be it. You said that the article I followed was obsoleted a year ago. Is there a new way I should install on a raspberry pi? I looked at the installation page, and it is ubuntu based, but it is 32bit instead of 64bit. Is there a newer set of instructions I should I to try and install on a raspberry pi?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 30, 2017, 2:26am UTC](https://forums.plex.tv/t/user-does-not-change/219494/6 "2017-12-30T02:26:17Z")

</div>

You can’t run PMS as user `root`  
``  
Dec 29 18:54:52 frandsenplex sudo[1011]: pam\_unix(sudo:session): session closed for user root  
Dec 29 18:55:05 frandsenplex sudo[1038]: pi : TTY=pts/0 ; PWD=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs ; USER=root ; COMMAND=/bin/journalctl -xe

```auto

```

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 30, 2017, 2:28am UTC](https://forums.plex.tv/t/user-does-not-change/219494/7 "2017-12-30T02:28:14Z")

</div>

Show me your `/etc/systemd/system/plexmediaserver.service.d/override.conf` please ?

---

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 30, 2017, 4:36am UTC](https://forums.plex.tv/t/user-does-not-change/219494/8 "2017-12-30T04:36:09Z")

</div>

Of coarse!! I really can’t thank you enough. I have spent upwards of 15 hours trying to get this to work.

```auto
#
# Customize Plex's config
#
# Identify this as a service override
[Service]
#
# Move the data directory
#Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdir/Library/Application Support"
#
# These values are only needed if you wish to change user & group
User=pi
Group=pi
#
# This is needed to change the default umask     
#UMask=0002 # this must be 4 digits of octal 

```

From what I understand(which isn’t much because I am still a noob) I thought pi is just a normal user, and not root. I don’t really understand how I am trying to start it up as root…

**Moderator Edit: Used triple-grave on preceding and succeding lines for formatting**

---

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 30, 2017, 4:37am UTC](https://forums.plex.tv/t/user-does-not-change/219494/9 "2017-12-30T04:37:07Z")

</div>

Sorry for the weird formatting on the last comment.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 30, 2017, 5:40am UTC](https://forums.plex.tv/t/user-does-not-change/219494/10 "2017-12-30T05:40:13Z")

</div>

I have corrected the formatting for readability.

Once you’ve made the edit, as I instruct in the how-to

1. `sudo systemctl daemon-reload` (tell `systemd` you’ve made changes)
2. `sudo systemctl restart plexmediaserver` ( restart PMS)

**note:**

Before restarting:

1. Stop PMS
2. Change file & directory ownership  
3 Now restart PMS through systemd

---

<div class="post-metadata">

**Author:** ![cambam135](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cambam135](https://forums.plex.tv/u/cambam135)\
**Post date:** [December 30, 2017, 6:27am UTC](https://forums.plex.tv/t/user-does-not-change/219494/11 "2017-12-30T06:27:15Z")

</div>

You were right, I had to change the permissions and ownership of the override file. I also had to change the ownership of the /var/lib/plexmediaserver folder. After that, it all started up perfectly. I am so grateful for your help. I am amazed at how quickly you responded and how helpful you were. Thank you.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [December 30, 2017, 3:35pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/12 "2017-12-30T15:35:08Z")

</div>

I’m glad everything is working for you and that I could help.

I do my best to respond quickly but sometimes life does get in the way . haha

For future reference, `/etc/systemd/system` and all the files underneath it are owned by `root`. Only those in the Plex related directories (e.g. `/var/lib/plexmediaserver` and below need ownership changed to that of the new username (owner)

---

<div class="post-metadata">

**Author:** ![aamzr](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@aamzr](https://forums.plex.tv/u/aamzr)\
**Post date:** [January 30, 2018, 11:09am UTC](https://forums.plex.tv/t/user-does-not-change/219494/13 "2018-01-30T11:09:55Z")

</div>

Generally, what is the benefit of changing the plex user from plex to pi?  
I did it just because the tutorials told me and it worked.  
Now after loosing some time to learn how it works with systemd I started thinking about it.

---

<div class="post-metadata">

**Author:** ![drmagoo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drmagoo/32/13982_2.png) [@drmagoo](https://forums.plex.tv/u/drmagoo)\
**Post date:** [January 30, 2018, 11:47am UTC](https://forums.plex.tv/t/user-does-not-change/219494/14 "2018-01-30T11:47:45Z")

</div>

> @aamzr said:  
> Generally, what is the benefit of changing the plex user from plex to pi?  
> I did it just because the tutorials told me and it worked.  
> Now after loosing some time to learn how it works with systemd I started thinking about it.

There is no benefit and the third party tutorials are doing it wrong. Neither the official Plex Linux guides nor my “official” Pi guide tell you to do something like that 🙂 It’s just that most tutorials on the net are written by people, who do not know what they are talking about 🙂

---

<div class="post-metadata">

**Author:** ![moviebrain](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@moviebrain](https://forums.plex.tv/u/moviebrain)\
**Post date:** [April 16, 2018, 7:52pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/15 "2018-04-16T19:52:32Z")

</div>

EDIT: Sorry, going to post a new topic when I’ve done more research. Sorry for necroposting to this old thread!

---

<div class="post-metadata">

**Author:** ![drmagoo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drmagoo/32/13982_2.png) [@drmagoo](https://forums.plex.tv/u/drmagoo)\
**Post date:** [April 16, 2018, 9:17pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/16 "2018-04-16T21:17:10Z")

</div>

@moviebrain If your external drive uses ext3/ext4 or any other Linux file system, then I have a nice and clean solution for you: Just create the directory “Plex Versions” at the top of your corresponding library directory and make it owned by `plex` (e.g. `mkdir "Plex Versions" && sudo chown plex:plex "Plex Versions"`). Then select the appropriate “Versions storage location” when creating optimized versions, i.e. not “in folders with original items”.

[https://support.plex.tv/articles/213095317-creating-optimized-versions/](https://support.plex.tv/articles/213095317-creating-optimized-versions/)

If your drive is FAT32 or NTFS you might have to change the mount options in `/etc/fstab`. Please tell us about your current fstab entry for your external drive.

---

<div class="post-metadata">

**Author:** ![moviebrain](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@moviebrain](https://forums.plex.tv/u/moviebrain)\
**Post date:** [April 16, 2018, 9:30pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/17 "2018-04-16T21:30:43Z")

</div>

Thank you @uglymagoo wow, of course it would be that easy 🙂 my brain doesn’t always completely understand permissions. Thanks for your hard work 🙂 it works flawlessly!

Yep, it’s ext4, and making the one folder world-readable but writable only to plex is so very clean! I sometimes forget that the things highly restricted users write can still be read by the admin user too!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:39pm UTC](https://forums.plex.tv/t/user-does-not-change/219494/18 "2020-01-08T19:39:56Z")

</div>


