

If I did that, I could simply give the plex user ownership and then leave the permissions such that the owner can read and write to the file (so, 600). Technically, what I should probably do is make the user “plex” an owner of the files, which would then allow me to keep the permissions as restrictive as possible. Once I changed the permissions, my Plex server was able to find and index the file. Based on that article, the command I should have used for those files was: sudo chmod 644 -R /plexserver/videos/newfiles It turns out, Plex has a very nice article on Linux permissions. The general rule of thumb for Linux permissions is that you should grant sufficient permissions to do what you need but should never grant more lenient permissions than you need to. However, that’s not best Linux security practice. As soon as I changed the permissions, Plex was able to detect and index the files. Security gurus will freak out about this as I basically made those files accessible with no restrictions whatsoever. To do that, I used the following command: sudo chmod 777 -R /plexserver/videos/newfiles My immediate response was to change the permissions to make them fully accessible to make sure that Plex could read them. In the image above, you can see that the permissions for the two lower files (the first and second half of the Sevilla vs CFR Cluj game) are 600 with me as the owner and not “plex.” Any combination of these permissions is theoretically possible.)Ī quick check of the files on my Plex server showed that, indeed, some of the files had permissions settings that were likely interfering with Plex’s ability to index the files: Thus, you can set the Owner to be able to Read, Write, and Execute a file while not allowing the Group or Others to do the same. Then there are three categories of those who can interface with the file: Owner, Group, Others. There are three options for what can be done with a file: Read, Write, Execute. Basically, it’s a 3×3 set of permissions.

All files and folders on Linux have permissions assigned to them that dictate what can and cannot be done with them. (Quick aside for those not used to Linux permissions. Since my Plex server is on Linux, it took me a minute to think it through, but I wondered if the files I had put into the library had the appropriate permissions for Plex. Then I went for the bigger ask for my Plex server and selected “Manage Library -> Refresh all Metadata”: That will often solve the problem, but it didn’t. First, I selected the options for the library and then chose “Scan Library Files”:

I added a number of video files to my Plex server the other day and, when I checked Plex, some of them had not shown up in the corresponding library.
