@ChuckPa said:
Linux groups don’t work like Windows groups work. This is a fundamental difference.
In order to use groups configured as you have, You still must change file permissions to use them.
In everything I have written, the fundamental point is “File Permissions”. PMS (user plex
) needs “Read” permission for the directory which was changed (media deleted) in order to actually see (read) what was deleted. This is the iNotify Directory Change event.
I have to confirm that now Libraries are updating everything. When i add movies the movies appear in the Library and when i delete a movie then the movie is removed from the Library. BUT… There is a BUT… now the Sub-Zero plugin doesnt download any Subtitles… 
First i am gonna tell what i have done step by step:
01.) Removed all the Libraries from within Plex
02.) Deleted all OLD media folders that i had on my Ubuntu 16.04 LTS distro
03.) Removed the plex user from the mantax group. I had done this so the plex user would have write access to the movies folder. I wanted to have a clean installation. So originally plex user never was a member of the mantax group and i reverted to this state.
04.) Logged in as the mantax user and issued the following commands:
sudo mkdir /home/mantax/media sudo mkdir /home/mantax/media/movies sudo mkdir /home/mantax/media/tv sudo touch /home/mantax/media/movies/dummy.file sudo touch /home/mantax/media/tv/dummy.file sudo chown -R mantax /home/mantax/media sudo find /home/mantax/media -type d -exec chmod 757 {} \; sudo find /home/mantax/media -type f -exec chmod 646 {} \;
With the last two commands Sub-Zero should be able to download the subtitles WITHOUT being a member of the mantax group.
05.) Sub-Zero was already configured BUT i rechecked again if all the settings where correct. Sub-Zero was enabled in “Settings > Server > Agents” for both Movies and TV Shows and The plugin was placed at the very top of the Agent list and the checkmarks were enabled. Also when creating the Movie Libraries i selected the correct Movie Agent and the correct Movie Scanner. So Sub-Zero SHOULD work BUT it is not working anymore. I even tried to uninstall and reinstall the Sub-Zero plugin but again nothing. The plugin APPEARS enabled etc but it is not abble to download subtitles.
These where the steps i have taken. Library updates work now but Sub-Zero isnt. Just for the info here are my permissions when i do a ls -l
command when i am inside my /home/mantax folder:
[mantax@mantax]:(0b)~$ ls -l total 16 drwxr-xr-x 2 mantax mantax 4096 Jan 15 18:26 dwatch drwxr-xrwx 4 mantax root 4096 Jan 18 13:26 media drwxr-xr-x 2 mantax mantax 4096 Jan 15 18:26 rwatch drwxr-xr-x 4 mantax mantax 4096 Jan 15 18:26 torrents
Also here are the permissions when i go inside my “/home/mantax/media” folder:
[mantax@mantax]:(0b)~/media$ ls -l total 8 drwxr-xrwx 6 mantax root 4096 Jan 18 13:26 movies drwxr-xrwx 2 mantax root 4096 Jan 18 11:49 tv
And here are the permissions for my “/home/mantax/media/movies” folder:
[mantax@mantax]:(0b)~/media/movies$ ls -l total 16 -rw-r--rw- 1 mantax root 0 Jan 18 11:49 dummy.file drwxr-xr-x 2 mantax mantax 4096 Jan 18 12:08 MOVIE-A-2015 drwxr-xr-x 5 mantax mantax 4096 Jan 18 12:07 MOVIE-B-2016 drwxr-xr-x 2 mantax mantax 4096 Jan 18 12:08 MOVIE-C-2007 drwxr-xr-x 2 mantax mantax 4096 Jan 18 12:08 MOVIE-D-2009
As you see i am categorizing my movies inside my “/home/mantax/media/movies” folder. When i download something through lets say Deluge i am moving via Deluge the movie to its OWN subfolder with the year the movie came out because i like my movies being categorized. So normally when Sub-Zero would download a Subtitle the Subtitle would be download to the movies subfolder next to the movie file. It worked when plex was a member of the mantax group AND the subfolders had 775 permissions. In the above example my movies SUBFOLDERS have 755 permissions because when i move the folders from Deluge this is the default permissions my folders have.
Also i noticed that the folders that i mention BELLOW belongs to the user mantax BUT they dont belong to the group mantax… they belong to the root group. Is this correct? Also the BELLOW folders have 757 permissions which seems correct.
/home/mantax/media /home/mantax/media/movies /home/mantax/media/tv
BUT the subfolders of the movies belong to the user mantax AND to the group mantax. Also they have permissions 755. Maybe here is somewhere the problem?
Thanks in advance
George