FreeNAS 11 RC4 - plex plugin storage permission problems

Status
Not open for further replies.

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Hi all,
fighting again with plex storage permissions...
Tried to follow the official guide and
https://forums.freenas.org/index.ph...to-install-plex-in-a-freenas-9-10-jail.19412/

but not yet able to make it works...
This is what i've done so far:

1) installed the plex plugin (what are the pro's to install it manually?)
2) add storage from the WebUI

SOURCE: "/mnt/OLDNAS/MEDIA/Photo"
DESTINATION: "/media/Photo"

3) tried to modify permission and groups and now having this:

Code:
root@plexmediaserver_1:/ # ls -l /media										
total 9																		
drwxr-x---  46 root  1003  46 Feb 26  2016 Photo								
root@plexmediaserver_1:/ #


and

Code:
root@plexmediaserver_1:/ # cat /etc/group																						  
# $FreeBSD: releng/11.0/etc/group 294896 2016-01-27 06:28:56Z araujo $															
#																																  
wheel:*:0:root																													
daemon:*:1:																														
kmem:*:2:																														  
sys:*:3:																															
tty:*:4:																															
operator:*:5:root																												  
mail:*:6:																														  
bin:*:7:																															
news:*:8:																														  
man:*:9:																															
games:*:13:																														
ftp:*:14:																														  
staff:*:20:																														
sshd:*:22:																														
smmsp:*:25:																														
mailnull:*:26:																													
guest:*:31:																														
video:*:44:																														
bind:*:53:																														
unbound:*:59:																													  
proxy:*:62:																														
authpf:*:63:																														
_pflogd:*:64:																													  
_dhcp:*:65:																														
uucp:*:66:																														
dialer:*:68:																														
network:*:69:																													  
audit:*:77:																														
www:*:80:																														  
_ypldap:*:160:																													
hast:*:845:																														
nogroup:*:65533:																													
nobody:*:65534:																													
media:*:8675309:plex,www																											
plex:*:972:																														
root@plexmediaserver_1:/ #


so now the question is...how can i do to match/change the different ownership of "media" folder to group "media"?

do you think that with "chgrp -R media /media" will i solve my problem?

TIA
 

scrappy

Patron
Joined
Mar 16, 2017
Messages
347
Have you created a media group yet in your FreeNAS host? If not, create a new group called media. Then, while still in FreeNAS, select Volumes, click to highlight your media dataset, select edit and change group ownership to media. I think this is what you're trying to achieve but I'm a little bit confused by your original post.
 

danjng

Explorer
Joined
Mar 20, 2017
Messages
51
One possible way is just ignore the naming and use UID/GIDs. Essentially, you can just set ownership with something like 'chown -R 1003:1003 .' In that directory to set all owners and groups to bag id. You would of course replace the number with the actual UID/GID. You can see it if you did a 'ls -aln'. The 'n' parameter will give you numbers instead of names. Then all you have to do is make sure all the ids match up. If you want to make it look nice then you can always create users with those specific ids as long as they also match up.


Sent from my iPhone using Tapatalk
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
ok, so the problem WAS that:

on my OLD freenas box the folder MEDIA (source) is owned by 0:1003, while the folder media (destination) in the jail is 0:1003 so they match and everything works perfectly
on my NEW freenas box the folder MEDIA (source) is owned by 0:8675309 (FN11 default "media" GID), while the folder media (destination) in the jail is 0:1003 so they don't match and doesn't work

NOW, after trying different ways to solve the problem, and many reboots, i was finally able to solve it and have even on the new box

the folder MEDIA (source) is owned by 0:8675309, while the folder media (destination) in the jail is 0:8675309

the problem is that i can't remember how! :D
 
Status
Not open for further replies.
Top