Emby permissions

Bjureus1

Dabbler
Joined
Nov 18, 2019
Messages
25
Hi

Anybody know why I Emby does not update permissions for newly added folders?
When I scan library for new files emby cant find them.
The Solution is to go to the storage --> dataset and update permissions recursively.
Doing a scan after this solves the problem temporary, when a new folder is added I have to do this all over again.

Never had this problem before.
 

ITGuy1024

Explorer
Joined
Dec 13, 2014
Messages
89
It looks like I'm also having this scenario on 11.3-U4.1
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Couple notes:
- Make sure the inherit flag is set on the ACL entries
- Rely on an ACL entry for the user that emby uses, not just owner/group. If, for example, you create the new folders via SMB, they'll be owned by the user that created them. However, inheritable ACLs will apply, and that'll give Emby the access it needs.
 

ITGuy1024

Explorer
Joined
Dec 13, 2014
Messages
89
Inherit flag is set.
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
would be quite helpful if these plugins had some instructions.
i see there is an emby UID:GID of 989 within the jail.

When i mount the share point, i see in the jail the UID:GID of the user that owns the dataset.
i use user1:users

but emby doesn't recognize any folders under the mount point of /media/
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Did you solve this as I have the same problem.
Thanks
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
Did you solve this as I have the same problem.
Thanks
- i created a user: emby with UID 989
- i created a groud: emby with UID 989
- In Storage, Pools, Edit ACL, i added a user ACL for Emby with same permissions as owner.

Don't what i am doing, but trial and error has it working.
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Thanks, but I am using FreeNas 11.2-U8, and I don't see anything for Edit ACL against my storage pools
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Thanks, but that is a bit above my level. I can't see anything in the guide either how to set facl.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
You could try the search function of the forum :wink:

This will find the following post/thread:

You'll have to do it that way or upgrade to a version with the ACL Editor included.
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Yes maybe so. Before I upgrade permanently I want to sort what snum 10 error means against one of my pools. I posted that in the installation/update section.

When I run:
setfacl -m u:989:modify_set:fd:allow /mnt/WinShare/Media/Music
it returns:
set facl /mnt/WinShare/Media/Music stat ( ) failed : no such file or directory.

Now that's strange because it does exist.

Thanks anyway
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
i'm using 11.3U5.

Can't help you with the manual commands i am afraid.
Not sure what SMB shares have to do with it.
I am using emby purely for streaming, so don't need any shares.

add the usr/group to the ACLs with the same as @owner default values, should be all you need to stream.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
When I run:
setfacl -m u:989:modify_set:fd:allow /mnt/WinShare/Media/Music
it returns:
set facl /mnt/WinShare/Media/Music stat ( ) failed : no such file or directory.

Now that's strange because it does exist.
Maybe there is a typo?
Or have you copied the path from Windows?
Please note that in SMB filenames are caseinsensitive, while in the Unix shell they are not.
So does a ls -l /mnt/WinShare/Media/Music in the shell work?
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
I copied and pasted from another post to a text file, then typed it out in a shell:
setfacl -m u:989:modify_set:fd:allow /mnt/Pool_1/Movies
winacl -a clone -rv -p /mnt/Pool_1/Movies

Then changed /mnt/Pool_1/Movies to suit my path

It was a typo, as I typed set facl instead of setfacl, doh!
ls -l /mnt/WinShare/Media/Music does work and gives a list of all the music files

emby still cannot find the path for the media files, and when I select the folder in emby it only shows /mnt.

Thanks
 
Last edited:

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Can you see the files if you access it from a root shell in the plugin?
Where did you mount your music and movies folder into the plugin?
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
Ok, I have solved this problem now, but I had to think about it, and found it by trial and error
When I go to add the music folder, it is just the media folder of the emby jail I select and nothing else, like this: /media.
That is where my files are mounted in the emby plugin, but I didn't realise that was where I should point the emby plugin to when selecting the folder.
Then all the music files are added. I was so used to pointing other devices to /mnt/WinShare/Media/Music

Thanks
 
Top