michelinomon 0 Posted March 25, 2021 Share Posted March 25, 2021 (edited) 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 March 25, 2021 by michelinomon Link to comment Share on other sites More sharing options...
Q-Droid 639 Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
michelinomon 0 Posted March 25, 2021 Author Share Posted March 25, 2021 (edited) 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 March 25, 2021 by michelinomon Link to comment Share on other sites More sharing options...
Q-Droid 639 Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
Luke 37052 Posted May 26, 2021 Share Posted May 26, 2021 @michelinomon has this helped you resolve it? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now