But when I get to the point where permissions come into play I run into a problem. Instead of getting full permissions on Step C I instead get:
drwxr-xr-x
I have followed the tutorial as closely as I can and I have no idea what I’ve done differently that would alter these permissions. Any help would be greatly appreciated.
To fix this you will need to look at a few things.
What are the current permissions of the folders/files that you are working with?
Navigate into the root of the library folder and run the command ls -al. You will see one or more entries like:
drwxr-xr-x 2 USERGROUP 4096 Aug 7 20:12 FOLDER/FILE NAME
What is the username plex is running under, normally plex.
The following command will confirm the username plex is running as. ps -aux | grep plex
From the permissions you indicated above (drwxr-xr-x) this means Drwxr-xr-x = directory
dRWXr-xr-x - owner has full access
drwxR-Xr-x - the group has Read and Execute access
drwxr-xR-X - guests have Read and Execute access.
I would suspect that your media directory permissions do not properly include the username that Plex is running under as well as a group that Plex is not apart of.
What I do and would suggest is the following:
Create a new user group called something like “services” sudo groupadd services
Add the username that Plex is running under to this new services group (assuming it is plex) sudo usermod -a -G services plex
Change the GROUP ownership of the entire library folder + contents to this new “services” group. sudo chown :services ‘/root/library/folder/’ -R (substitute /root/library/folder/ to your actual ROOT library folder)
Change the permissions of the entire library folder giving access to the services group. Read-only OR full access, select ONE of the following commands. sudo chmod 775 ‘/root/library/folder/’ -R - (rwxRWXr-x Plex admin can delete items from within Plex) sudo chmod 755 ‘/root/library/folder/’ -R - (rwxR-Xr-x Plex has read-only access)
(NOTE: substitute /root/library/folder/ to your actual ROOT library folder, the single quotes are in case your folder names have spaces)
At this point the library folder is still owned by the same user but any user apart of the new “services” group may have access. If there are any other programs or users that need access to the library you may add the respective usernames to the services group like this: sudo usermod -a -G services USERNAME. The permissions may not take affect until a restart of the session or application, so a reboot is best after these changes are made.
This is based off Debian Linux, other Linux distros may differ in commands and syntax but the process is likely the same. Raspbian and Debian should be the same exact process.
okay so everything is going well and you’re guide makes sense until I get to the root folder. I’m working on a raspberry pi 4 with 2GB of RAM running Raspbian.
My main issue is just not knowing where my root folder would be or how to find it. When I cd all the way out I see a root folder but it’s completely empty. Thank you so much for your help.