# PMS - Synology - Linux - administration difficulties

**URL:** <https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699>\
**Category:** Plex Media Server\
**Tags:** server-linux, plex-web, networking\
**Created:** [June 23, 2020, 6:41pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699 "2020-06-23T18:41:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 6:41pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/1 "2020-06-23T18:41:12Z")

</div>

Server Version#: 4.30.2  
Player Version#:  
[Plex Media Server Databases\_2020-06-23\_19-19-37.zip](https://forums.plex.tv/uploads/short-url/kVLCHDmGFKtOLMGOTkt6hze5DeP.zip) (2.0 MB) [Plex Media Server Logs\_2020-06-23\_19-19-31.zip](https://forums.plex.tv/uploads/short-url/2QP9U66xVw7bWgZbez1FBdpMpH.zip) (5.1 MB)

Have my ubuntu system setup to automount my synology. I have read/write access for my user and group. The folder for tv shows directory disappears but content remains on the server. If I click refresh on the browser and check the directory it’s there again. I think this is a bug in plex and have attached my logs.

 ![Screenshot from 2020-06-23 19-31-12](https://global.discourse-cdn.com/plex/original/3X/4/7/47e8a4a37ee3d3b27eb7befdb617862bc56d5b4e.jpeg)  
 ![Screenshot from 2020-06-23 19-38-27](https://global.discourse-cdn.com/plex/original/3X/a/a/aa54f866c20418758e734ebb7b741dad55ace6e5.jpeg)  
I have been in touch with synology to see if it’s an issue with how I’m mounting the nas and they say that it’s a plex bug. Not sure if that’s true but I never had this issue with mac and windows mounting synology nas.

---

<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:** [June 23, 2020, 7:41pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/2 "2020-06-23T19:41:36Z")

</div>

This is not a BUG. This is a user administration issue.

> [@How to mount media from your NAS shares on Linux using NFS](https://forums.plex.tv/t/how-to-mount-media-from-your-nas-shares-on-linux-using-nfs/197947):
>
> Mounting NFS network shares for Plex use on Linux . The basic checklist A. Prepare the NAS: B. Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. C. Create an entry in /etc/fstab for each share you wish to mount. D. Mount and debug as needed A. Prepare the NAS. This is unique to each NAS. In general, you only need grant read permission. Should you desire Read/Write for yourself, …

> [@How to mount media from your NAS shares on Linux using CIFS / SMB](https://forums.plex.tv/t/how-to-mount-media-from-your-nas-shares-on-linux-using-cifs-smb/197957):
>
> Mounting CIFS network shares for Plex use on Linux . The basic checklist A. Prepare the NAS B. Install , if required, cifs-utils (or appropriate client) on the Plex server system. C. Create the CIFS/SMB credentials file for use in /etc/fstab D. Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. E. Create an entry in /etc/fstab for each share you wish to mount. F. Mount and debug as …

The most important aspect is that user `plex`, in group `plex` (Linux is strict on security by nature), can see the mounts. Your username and user `plex` are distinct ‘users’ to Linux and, as such, subject to Linux default security mechanisms.

Mac runs PMS as your username.  
Windows has no ‘username’ per se.

---

<div class="post-metadata">

**Author:** ![JKalchik](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@JKalchik](https://forums.plex.tv/u/JKalchik)\
**Post date:** [June 23, 2020, 7:42pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/3 "2020-06-23T19:42:00Z")

</div>

When you say “automount”, are you referring to a configuration within /etc/fstab, or are you referring to the automounter facility, generally configured in /etc/auto\* ?

I’m hard mounting an NFS share from a Synology device on CentOS 7 without issue. Your description of the problem leads me to suspect that you’re trying to use the automounter facility, and I’m not sure that’s going to work well, PMS expects the share to always be mounted. AutoFS does have it’s share of issues as well.

Edit: pay close attention to @ChuckPA’s response.

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 7:47pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/4 "2020-06-23T19:47:37Z")

</div>

I’m using /etc/fstab

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 7:49pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/5 "2020-06-23T19:49:55Z")

</div>

Where it says to share permissions for plex on nas and export them, how do I do that?

---

<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:** [June 23, 2020, 7:58pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/6 "2020-06-23T19:58:17Z")

</div>

On Synology:

1. Create a user named `plex`, in group `users` (the default group)
2. This username is used by NFS and the Synology tools to allow permission to specific shares.
3. Control Panel - File Services - Enable NFS service.  
 ![Screenshot from 2020-06-23 15-53-31](https://global.discourse-cdn.com/plex/original/3X/9/2/92b9506b2aa78be767c7b32ccb7ffee8f66bfc3e.png)
4. Control Panel - Shared Folders : Grant permission to those shares you want user `plex` to have access over the LAN.
5. The Synology is now ready.

Return to Linux,

1. Make certain your username owns the mount point directories.
2. Also make certain the mount point directories have permissions 755.
3. Perform a manual mount to test.

> sudo mount ip.addr.of.syno:/volume1/sharename /mount/point/directory

1. Test access in PMS
2. Having confirmed access, add the entry in `/etc/fstab`.

> ip.addr.of.syno:/volume1/sharename /mount/point/directory nfs defaults,auto,nofail,bg 0 0

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:05pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/7 "2020-06-23T20:05:13Z")

</div>

I was using cifs and had permissions set to 775 and and set chown to gordon:gordon which worked perfectly. When I use nfs it changes ownership to root

---

<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:** [June 23, 2020, 8:06pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/8 "2020-06-23T20:06:19Z")

</div>

Then use CIFS. There is no iron-clad rule HOWEVER , CIFS only supports one username so you must make the choice “gordon” or “plex”.

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:06pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/9 "2020-06-23T20:06:55Z")

</div>

so can I run plexmediaserver as user gordon?

---

<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:** [June 23, 2020, 8:08pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/10 "2020-06-23T20:08:58Z")

</div>

absolutely.

You need not use all the customizations I show in this How-To.  
You will need to change the ownership of `/var/lib/plexmediaserver` (as it shows) to match your new username.

> [@Customizing your Plex configuration](https://forums.plex.tv/t/customizing-your-plex-configuration/205443):
>
> Customizing your Plex configuration on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. On systems which use Systemd (Ubuntu 16+, Fedora, Centos 7, Debian 8,) you create this customization file which SystemD reads prior to launching PMS. This file is independent of the default configuration and service control mechanisms in /lib/systemd/system/plexmediaserver.service. Your customization override is preserved across updates, uninstal…

Read this How-To thoroughly and completely before starting. Understand the process and steps which all must come together in sequence.

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:11pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/11 "2020-06-23T20:11:07Z")

</div>

Thanks, I’ll have a read over that.

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:38pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/12 "2020-06-23T20:38:38Z")

</div>

is it necessary to change the data directory?

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:42pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/13 "2020-06-23T20:42:41Z")

</div>

gordon@Ubuntu:~$ ps aux | grep “plex”  
gordon 4519 4.5 0.2 2278188 66848 ? Ssl 21:41 0:00 /usr/lib/plexmediaserver/Plex Media Server  
gordon 4553 7.7 0.1 1869012 50956 ? SNl 21:41 0:01 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.4.2902-69560ce1e /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/System.bundle  
gordon 4590 0.0 0.0 511704 13996 ? Sl 21:41 0:00 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.19.4.2902-69560ce1e 32600 /waitmutex  
gordon 4624 5.5 0.1 958556 45756 ? Sl 21:41 0:00 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.4.2902-69560ce1e /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/PlexMovie.bundle  
gordon 4665 0.0 0.0 17536 732 pts/0 S+ 21:41 0:00 grep --color=auto plex

---

<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:** [June 23, 2020, 8:44pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/14 "2020-06-23T20:44:33Z")

</div>

You’re only changing the **User** , correct?

If so, your file **/etc/systemd/system/plexmediaserver.service.d/override.conf**  
will contain:

> [Service]  
> User=gordon  
> Group=gordon

From here, with PMS stopped,

> sudo chown -R gordon:gordon /var/lib/plexmediaserver  
> sudo systemctl daemon-reload  
> sudo systemctl start plexmediaserver

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 8:45pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/15 "2020-06-23T20:45:33Z")

</div>

Is there a command that tells me what user plex is running as?

---

<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:** [June 23, 2020, 8:57pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/16 "2020-06-23T20:57:32Z")

</div>

> ps -ef | grep -i plex

The username will be in column 2

`ps aux` is more BSD syntax than Linux.

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 9:00pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/17 "2020-06-23T21:00:33Z")

</div>

> [@ChuckPa](#):
>
> ps -ef | grep -i plex

 ![Screenshot from 2020-06-23 21-59-01](https://global.discourse-cdn.com/plex/original/3X/8/6/868634369e1d8daa15366d01dbef2e74d44d7d91.png)

That look right?

---

<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:** [June 23, 2020, 9:01pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/18 "2020-06-23T21:01:27Z")

</div>

please copy/paste from the console, bracketing with ``` on the preceding and succeeding lines. I can’t read that screenshot.

```  
paste text here  
```

---

<div class="post-metadata">

**Author:** ![baryoncode](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baryoncode/32/179652_2.png) [@baryoncode](https://forums.plex.tv/u/baryoncode)\
**Post date:** [June 23, 2020, 9:05pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/19 "2020-06-23T21:05:13Z")

</div>

```auto
gordon@Ubuntu:~$ ps -ef | grep -i plex
gordon 5025 1878 0 21:43 ? 00:00:01 /usr/bin/Plex_Media_Player.AppImage
gordon 5066 1878 0 21:43 ? 00:00:00 /tmp/.mount_Plex_M5QEYcM/usr/bin/pmphelper
gordon 7212 1 1 21:55 ? 00:00:02 /usr/lib/plexmediaserver/Plex Media Server
gordon 7247 7212 1 21:55 ? 00:00:02 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.4.2902-69560ce1e /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/System.bundle
gordon 7286 7212 0 21:55 ? 00:00:00 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.19.4.2902-69560ce1e 32600 /waitmutex
gordon 7329 7212 0 21:55 ? 00:00:00 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.4.2902-69560ce1e /usr/lib/plexmediaserver/Resources/Plug-ins-69560ce1e/PlexMovie.bundle
gordon 7818 2208 3 21:58 ? 00:00:01 /tmp/.mount_Plex_MKMANgo/usr/bin/plexmediaplayer
gordon 7822 1878 3 21:58 ? 00:00:01 /usr/bin/Plex_Media_Player.AppImage
gordon 7866 7818 0 21:58 ? 00:00:00 /tmp/.mount_Plex_MKMANgo/usr/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=qrc:sLV --lang=en-US
gordon 7868 7866 0 21:58 ? 00:00:00 /tmp/.mount_Plex_MKMANgo/usr/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=qrc:sLV --lang=en-US
gordon 7883 7868 4 21:58 ? 00:00:01 /tmp/.mount_Plex_MKMANgo/usr/libexec/QtWebEngineProcess --type=renderer --disable-gpu-memory-buffer-video-frames --enable-threaded-compositing --use-gl=disabled --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=MojoVideoCapture,SurfaceSynchronization,UseModernMediaControls,UseVideoCaptureApiForDevToolsSnapshots --disable-gpu-compositing --service-pipe-token=9873389678801821825 --lang=en-US --webengine-schemes=qrc:sLV --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=9873389678801821825 --renderer-client-id=2 --shared-files
gordon 7935 4151 0 21:58 pts/0 00:00:00 grep --color=auto -i plex

```

_ **Moderator Edit: Added ``` for legibility** _

---

<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:** [June 23, 2020, 9:08pm UTC](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699/20 "2020-06-23T21:08:43Z")

</div>

Gordon,  
When you edit your post, you’ll see the formatting I added at the first and last lines.  
This is the best way to share console output text.

Yes, Plex is now running as user `gordon`

[Next page](https://forums.plex.tv/t/pms-synology-linux-administration-difficulties/606699.md?page=2)
