Jump to content

Emby problem on raspberry


michelinomon

Recommended Posts

michelinomon

Hi,

I have a paspberry pi4 with a user pi. Inside of I've install homeassistant in a docker.

I try to install emby, it work but I'm not able to upload the library fron a external HD. The pi user autologin, and emby server start.

I read a lot of topic, I try to set correctly the permission of the file but not works.

this is my ls:

pi@raspberrypi:~ $ ls -ld /media/pi/FILM
drwxrwxrwx 1 pi pi 24576 gen 28 11:20 /media/pi/FILM

I try to change the user of the directory:

pi@raspberrypi:~ $ sudo su
root@raspberrypi:/home/pi# chown -R emby:emby /media/pi/FILM
root@raspberrypi:/home/pi# 

I change the permission of the directory:

root@raspberrypi:/home/pi# chmod -R 666 /media/pi/FILM
root@raspberrypi:/home/pi# 

Thanks.

Edited by michelinomon
Link to comment
Share on other sites

Q-Droid

You are only changing ownership and permissions on FILM. Emby needs to be able to access /media AND /media/pi AND /media/pi/FILM. One option is to add the "emby" user to the "pi" group which can work as long as the "pi" group has access via ownership and permissions to ALL of the directories along the path AND to the media files inclusively.

 

 

Link to comment
Share on other sites

michelinomon

ok I try:
 

pi@raspberrypi:~ $ sudo adduser emby pi
Aggiunta dell'utente «emby» al gruppo «pi» ...
Aggiunta dell'utente emby al gruppo pi
Fatto.
pi@raspberrypi:~ $

and then? not work.

root@raspberrypi:/home/pi# groups emby
emby : emby video render pi
root@raspberrypi:/home/pi#

Probably the problem is on the directory /media and /media/pi

root@raspberrypi:/home/pi# ls -ld /media
drwxr-xr-x 3 root root 4096 gen 14 18:25 /media
root@raspberrypi:/home/pi# ls -ld /media/pi
drwxr-x---+ 3 root root 4096 mar 25 17:42 /media/pi
root@raspberrypi:/home/pi# ls -ld /media/pi/FILM
drwxrwxrwx 1 pi pi 24576 mar 25 16:08 /media/pi/FILM
root@raspberrypi:/home/pi# 

So if I modify the /media/pi permission for other user it works:

root@raspberrypi:/home/pi# chmod 755 /media/pi
root@raspberrypi:/home/pi# ls -ld /media/pi
drwxr-xr-x+ 3 root root 4096 mar 25 17:42 /media/pi
root@raspberrypi:/home/pi# 

why?

Edited by michelinomon
Link to comment
Share on other sites

Q-Droid

Because /media and /media/pi are owned by root:root. The permissions needed to access those directories are at the "other" level, the only criteria left for "pi" and "emby".

You also have an ACL on /media/pi so it's possible other permissions exist that included user "pi" but not "emby". To see what they are:

getfacl /media/pi 

Link to comment
Share on other sites

  • 2 months later...

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...