Jump to content

Emby Cant see shared folder


mrasstits

Recommended Posts

mrasstits

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
Link to comment
Share on other sites

makarai

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
  • Like 1
Link to comment
Share on other sites

Lorry.Shead

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.

Link to comment
Share on other sites

MRobi

@@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!!

Link to comment
Share on other sites

makarai

@@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
Link to comment
Share on other sites

MRobi

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.ixsystems.com/blog/plex-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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...