Linux permissions of plexmediaserver

Hey all, maybe advanced question but…
I accidentaly mounted NTFS disk without linux permissions support parameter. This caused that all plex files inside /var/lib/plexmediaserver/ directory and subfolders/files have permissions set to 777.
can somebody help me with correcting permissions?
maybe user with plex server on linux and command:

find -printf '%M %p\n' > output.txt

as example.

Or should I set all files with same permissions? for example owner plex, group plex, permissions: -rw-r–r-- or 644 and directories 755?

Standard 644 is sufficient, with +x for directories. I think Plex will change certain permissions for you on some files. Be aware that your certificate files should be 600 or better so that they are loaded.

thanks, it’s done :slight_smile:

NTFS mounted on Linux always shows as 777. You can’t change it either.

To set the permissions back to default for any ‘ext’ based file system, two commands are used:

find /top/dir/here -type d -exec chmod 755 {} \;
find /top/dir/here -type f -exec chmod 644 {} \;

i know linux basics but thanks. Iwas just asking if there are any files which have specially set permissions to avoid problems

Nothing special is required.

I often suggest use of setuid and setgid as a means to help folks automate permissions settings
but other than that, you own the media and Plex has Read permission to the dirs and files… that’s it.
Plex only will modify (by deleting only) those which you allow and if you enable “allow media deletion” in your server settings.

Hi @lucidnx and @ChuckPa
I’ve always used the other way around, and edit the /etc/fstab file and enter the UUID of the drive and map it to a folder in the Media section then do a sudo mount -a, this was the way I got Plex to see my external and NAS drives be it in NTFS or ext4 or whatever mode they were formatted in.
I know this way may be a little daunting for those new to Linux, but the setgid works well to…

Dave

Yes, you can set the UID/GID for mounting NTFS but if you set UID/GID when you mount an EXT (Linux) partition, you have effectively nullified a significant feature of EXT and the premise of multiple, concurrent usersname, and permissions, Linux/Unix/Multics were build on.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.