FREENAS11.2 U3 change Plex Media Server folder permissions

oumpa31

Patron
Joined
Apr 7, 2015
Messages
253
I'm trying to copy my plex metadata and stuff over to a new Freenas box. I have not been able to find a way to change the permissions on the folder so i can make the group read write enabled. It is just under the root folder. i created a plex user and group with the same id numbers as plex made when i installed it through the plug ins. So i can access it but i have to disconnect all my other connected drives from the Freenas box. I am not sure how to get to the permissions on a unix folder that is not listed in the pools.

Still kind of new to freenas
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
Are you trying to change permission through the FreeNAS GUI?

This can be done through the CLI (command line interface) fairly easily. Do you have SSH access to your box? That is one way to access the CLI, the other being by opening the "shell" (along the right side, a bit toward the bottom) which will open a terminal window (CLI).
 

oumpa31

Patron
Joined
Apr 7, 2015
Messages
253
I have found through my searching that there is no way to do it through the GUI.

I figured I'd have to use the shell just not sure ab out the commands to be able to do it. Really haven't had the time to dig into SSH access. The folder structure is iocage\jails\plex\root\Plex Media Server. The Plex Media Server folder is the one that i want to change permissions on to allow group write access.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
Do you have root access to both boxes? There are so many ways you can do what you want to do. You could, from your personal computer, ssh into the old box and use the scp command to copy the .db file to your computer. then SSH in as root to the new freenas box and cp the .db file ln your computer into the appropriate location on the new freenas box.
 

oumpa31

Patron
Joined
Apr 7, 2015
Messages
253
I do have root access to both boxes. I would be doing this in the shell so i would need to navigate to this folder in the shell (not sure how). Then i would need the commands to change permissions.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
Here are some great resources for basic unix commands:
https://www.tipsandtricks-hq.com/basic-unix-commands-list-366

the ones you'll need are:
scp or cp (scp is essentially a copy but between two different boxes)
cd
chmod
mv (if you need to rename something or move something)

Post back if you are running into specific problems.
 

oumpa31

Patron
Joined
Apr 7, 2015
Messages
253
I am stuck in the root folder in shell. I'm guessing the only way to do what i want to do to get to the plex folder that i need to change the permissions of i will have to figure out how to ssh into the freenas server.
 
Last edited:

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
If you are using the shell in the FreeNAS GUI, that is the same thing as SSHing in your FreeNAS box.

Read the link above about which unix command you'll need to navigate to the parent directory that contains the Plex directory you want to modify. (hint it is the cd command)
 
Top