I am not sure how to begin. I have a dedicated plex server running linux mint, and i store my media on a qnap nas. I am brand new with linux. I find it frustrating to say the least. but i digress.
i find this sort of thing super easy with windows, but extraordinarily difficult with linux of any flavor. but I’m not a fan of Microsoft’s invasive privacy abuses and security flaws, so I’m trying something new. Also, i find my server runs faster in with linux for some reason.
User plex does not have permission to write to the destination directory(ies).
PMS runs faster in Linux on the same host because there is considerably less overhead in the OS (less waste) . This is what Linux is known for and why the vast majority of Web servers on the internet are Linux.
@ChuckPA said:
User plex does not have permission to write to the destination directory(ies).
PMS runs faster in Linux on the same host because there is considerably less overhead in the OS (less waste) . This is what Linux is known for and why the vast majority of Web servers on the internet are Linux.
thanks.
I should revise my question:
How do i correct permissions to enable my plex media server to avoid this error message and make optimizer work as intended. I am using linux mint 18.2 and the qnap share is smb.
the share auto mounts at boot time ( i edited /etc/fstab) and that’s working great. i can’t find a user named “plex” on my linux media server. theres a group called plex, but i don’t know how to edit permissions in linux.
If you’re using Mint (Linux) and QNAP, Why not use NFS? It’s faster and far less trouble because the QNAP is running Linux as well.
As example, I offer
# movies
vienna:/movies /vie/movies nfs sec=sys,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0
Share name is movies, mounted on /vie/movies
Let the system handle the security
Interruptable NFS
Read/Write mount
Version 4 NFS (uses TCP and faster)
Timeout and generate retry after 15 milliseconds if no reply from the QNAP
Automatically mount at startup
Async I/O (again, faster with the Linux host)
Host won’t fail to start if the NAS isn’t available
Push the mount into the background if too busy to complete immediately (it will mount in less than 1 second normally)
Now you can add user plex on QTS and give it permission to write to the desired locations
EDIT: If Mint gives you any permission issues after adding user plex to QTS and giving permission, remove sec=sys, from the mount options and let normal text-based authentication work.
@ChuckPA said:
If you’re using Mint (Linux) and QNAP, Why not use NFS? It’s faster and far less trouble because the QNAP is running Linux as well.
As example, I offer
# movies
vienna:/movies /vie/movies nfs sec=sys,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0
Share name is movies, mounted on /vie/movies
Let the system handle the security
Interruptable NFS
Read/Write mount
Version 4 NFS (uses TCP and faster)
Timeout and generate retry after 15 milliseconds if no reply from the QNAP
Automatically mount at startup
Async I/O (again, faster with the Linux host)
Host won’t fail to start if the NAS isn’t available
Push the mount into the background if too busy to complete immediately (it will mount in less than 1 second normally)
Now you can add user plex on QTS and give it permission to write to the desired locations
wow, I could have really used your help when i was setting this up!
Anyhow, I’m using smb because i had my server running in windows and i dont understand how to do anything else. I would love to switch to nfs for linux. I think i understand your post so I’ll try to get nfs working.
but won’t i still have the same underlying trouble with permissions?
edit i had to read your post a few times to understand it. I will try to enable nfs and add the user “plex” to my nas and see if that does the trick.
You won’t have any underlying problems with permissions provided you create the equivalent username on the QTS side…
There is a more ‘geeky’ way to do this (using sec=sys) but I’d prefer you not use that just yet. Translation: "remove sec=sys, from the options.
“sec=sys” means the UID & GID are the only thing checked. There isn’t any other mapping going on. If UID & GID are the same on both systems, giving plex permission on QTS, automatically means anything connected over NFS to it also has the same permission.
I have a number of little tricks in the Linux Tips section at the top of the Linux forum.
# movies
vienna:/movies /vie/movies nfs intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0
The QNAP host ‘vienna’ has a movies share where I put all my movies.
Mount that share on /vie/movies
The rest of the mount options you literally repeat
The username plex is used because on Mint (Linux) because that’s what we use.
NFS has two options for security: a) username or b) UID/GID. I’ve had you start out using username security. This is why you create a plex user on QTS and give it permission to read your media shares.
thanks,
I’m pretty confident that i am pointing to the correct share.
192.168.1.82:/plex
and mount point
/media/winshare01
I have several mount points in that directory for smb shares.
that’s where my media is at. Im watching right now. I created a folder on my qnap called “plex”
I created the user “plex” and gave it rw access to that folder.
Your 2nd from last picture was the key. “NFS host access” was set to read only. So even though i had the correct user name and gave it rw priveliges, it didnt work until i checked that box. I’m pretty sure i understand for the future.