Jump to content


Photo

Emby Cant see shared folder


  • Please log in to reply
6 replies to this topic

#1 mrasstits OFFLINE  

mrasstits

    Newbie

  • Members
  • 2 posts
  • Local time: 10:36 PM

Posted 24 March 2020 - 05:12 PM

Hello, I am in the process of setting up a FreeNAS box and I have my Pools/Datasets created. I have them shared and can access them via windows (smb) and rsync in linux. I created a jail for my media servers and have plex (which is my primary) installed and I can see/use the shared folders and add them to my library. 

I want to give emby a shot because I have heard good things but after installing emby into the jail, when I browse the parent folder that my shares are located in I can't see the mount points of my shared folders! I did not have to do anything for plex to gain access to them but the user emby can't seem to access or even see them. 

Is there something I can do to get this working properly with the emby user or is there another route I can go like getting the emby program to run as another user that has access? I have tried this in both it's own jail and in the jail that plex is running on with no luck. Hopefully someone can push me in the right direction. Thanks!


Edited by mrasstits, 24 March 2020 - 08:35 PM.


#2 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 545 posts
  • Local time: 04:36 AM

Posted 25 March 2020 - 02:23 AM

This is a file permission issue! I assume you created a plexuser with the plexuser id or your user and group that you created on freenas that owns the media dataset has already by accident or on purpuse the same id as the standard plex user. 

 

In order to fix this you need to find out the following: what is the userid or groupid that owns your media dataset? If you find out my media dataset is owned by the user mrasstits with a userid of 1101 and the mrasstits group with the groupid of 1101 you can do the following:

 

you log into the shell from your jail:

 

Jails -> click on [>] to enlarge the view -> click on shell

 

you should be greeted with the shell of the jail. root@jailname now type the following: (one line at a time, confirm with enter)

service emby-server stop
pw groupmod emby -n emby -g 1101
pw usermod emby -n emby -u 1101 -g 1101
chown -R emby:emby /var/db/emby-server
sysrc 'emby_server_user=emby'
service emby-server start

now the emby will have access to all the files owned by user 1101 and group 1101.


Edited by makarai, 25 March 2020 - 02:24 AM.

  • Lorry.Shead likes this

#3 mrasstits OFFLINE  

mrasstits

    Newbie

  • Members
  • 2 posts
  • Local time: 10:36 PM

Posted 25 March 2020 - 09:13 AM

Thank you for the response! I will give this a try.



#4 Lorry.Shead OFFLINE  

Lorry.Shead

    Newbie

  • Members
  • 1 posts
  • Local time: 03:36 AM

Posted 25 March 2020 - 05:46 PM

Thanks for the commands. I had the emby user and group, but couldn't work out how to relate that to the Installation / Jail.

 

This has taken months to get to the bottom of this and find the "magic key".

 

What's odd as I had it working at one stage without having to link the emby user / group, but I'd decided to re-install and document the FreeNAS / Emby install process and couldn't get it working again :( . I assume I'd used the root account or something like that.

 

Such a relief, I now have something to do whilst in isolation.

 

Thanks again.



#5 MRobi OFFLINE  

MRobi

    Advanced Member

  • Members
  • 342 posts
  • Local time: 11:36 PM

Posted 26 March 2020 - 09:28 AM

@makarai Have you checked out the new ACL manager in 11.3 yet? This tool is going to make permissions a breeze for FreeNAS users. I used it to configure by beta server and it works great and so simple!!



#6 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 545 posts
  • Local time: 04:36 AM

Posted 26 March 2020 - 11:58 AM

@makarai Have you checked out the new ACL manager in 11.3 yet? This tool is going to make permissions a breeze for FreeNAS users. I used it to configure by beta server and it works great and so simple!!

i have not tbh, but if you want to whip up a tutorial on how to adjust permissions on a freshly installed emby installation that would be great. :)


Edited by makarai, 26 March 2020 - 11:58 AM.


#7 MRobi OFFLINE  

MRobi

    Advanced Member

  • Members
  • 342 posts
  • Local time: 11:36 PM

Posted 26 March 2020 - 01:59 PM

i have not tbh, but if you want to whip up a tutorial on how to adjust permissions on a freshly installed emby installation that would be great. :)

Check out this article:

https://www.ixsystem...ex-permissions/

 

It's all done through the GUI.

Emby's default UID is 989

 

EDIT: I put together a quick guide with screenshots based on the steps in the article above. I'll send it your way to make sure it works for others and then I'll post it up.


Edited by MRobi, 26 March 2020 - 04:18 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users