NAA67 12 Posted August 30, 2025 Posted August 30, 2025 ¡Hola a todos! A ver si me podéis echar un cable con un problemilla de permisos en mi Raspberry Pi 5. Tengo Emby funcionando con los medios en un disco duro externo. Puedo ver y reproducir todo sin problemas, pero en cuanto intento borrar un archivo desde la interfaz de Emby, me salta el típico error de "Acceso denegado". He estado mirando los permisos de la carpeta y creo que ya sé por dónde van los tiros. El dueño de los archivos es el usuario "miusuario" y solo él tiene permiso para "Cambiar contenido". Lógicamente, como Emby se ejecuta con su propio usuario, no le deja tocar nada. Mi duda es, ¿cuál es la forma correcta de arreglar esto? No quiero liarla dando permisos a lo loco. Una vez toqué los permisos mal y me tocó reinstalar todo el sistema operativo de nuevo porque no podía entrar. ¡Gracias por la ayuda! ------ Hi everyone! I'm hoping you can help me with a small permissions issue on my Raspberry Pi 5. I've got Emby running with media on an external hard drive. I can view and play everything without any issues, but as soon as I try to delete a file from the Emby interface, I get the typical "Access Denied" error. I've been looking at the folder permissions, and I think I know what's going on. The owner of the files is the user "miusuario", and only they have "Change Content" permissions. Obviously, since Emby runs under its own user, it won't let them touch anything. My question is, what's the correct way to fix this? I don't want to mess up by randomly assigning permissions. I once messed up the permissions and had to reinstall the entire operating system again because I couldn't get in. Thanks for the help!
Luke 42077 Posted August 30, 2025 Posted August 30, 2025 HI there, can you please provide a specific example? How to Report a Problem Thanks !
NAA67 12 Posted August 31, 2025 Author Posted August 31, 2025 11 hours ago, Luke said: HI there, can you please provide a specific example? How to Report a Problem Thanks ! Claro. Te adjunto la captura de pantalla y un archivo de registro que me ha creado al intentar eliminar un par de archivos. No sé si necesitas algo más de información. Sé que es un problema de los permisos de Emby en mi Raspberry Pi, pero puede ver y leer los archivos sin problema, pero no eliminarlos, y en los permisos de la carpeta en la Raspberry Pi está puesto "Cualquiera" en todos los campos. --- Sure. I'm attaching the screenshot and a log file it created when I tried to delete a couple of files. I don't know if you need any more information. I know it's an issue with Emby's permissions on my Raspberry Pi, but I can view and read the files without a problem, but not delete them. The folder permissions on the Raspberry Pi are set to "Anyone" in every field. embyserver.txt
NAA67 12 Posted October 11, 2025 Author Posted October 11, 2025 (edited) Hola a todos, Si está usando Emby en una Raspberry Pi (o cualquier otro sistema Linux) con discotecas duros externos formateados en exFAT y no podéis borrar archivos (error de "Acceso denegado"), esta es la solución definitiva que conseguí. El sistema de archivos exFAT no permite los permisos de Linux. Por eso, aunque usa comandos como sudo chmod 775, los cambios no se aplican y Emby no tiene permiso para escribir o borrar. El problema real está en modo el sistema "monta" el disco duro por defecto. La Solución: Montaje Permanente con fstab La solución es decidir al sistema que siempre monte los discos duros con los permisos correctos. Para ello, editaremos el archivo fstab. Paso 1: Identificar tus discotecas duras Primero, necesidades el identificador único (UUID) de cada uno de tus discotecas. Abre una terminal y ejecuta: sudo blkid Busca tus discotecas en la lista y copia el valor UUID="..." de cada uno. Por ejemplo: UUID="1EE5-89A0". Paso 2: Crear los Puntos de Montaje (si no existen) Asegurate de que las alfombras donde se montarán los discotecas existen. Reemplaza /media/pi/MiDisco con tu ruta real. Si tus alfombras tienen espacios, usa comillas. sudo mkdir "/media/pi/Mi Disco 1" sudo mkdir "/media/pi/Mi Disco 2" Paso 3: Editar el archivo fstab Abre el archivo de configuración con el editor nano: sudo nano /etc/fstab Ve hasta el final del archivo y añade una línea por cada uno de tus discotecas, usando la siguiente plantilla. MUY IMPORTANTE: Reemplaza UUID_DE_TU_DISCO con el UUID que copia en el paso 1. Reemplaza /media/pi/Mi\040Disco\0401 con la ruta a tu alfombra. ¡Cada espacio en la ruta debe ser reemplazado por \040! Asegurate de que el uid y gid coinciden con tu usuario. En Raspberry Pi OS suelen ser 1000 para el usuario pi. # Discos duros para Emby UUID=UUID_DE_TU_DISCO /media/pi/Mi\040Disco\0401 exfat defaults,uid=1000,gid=1000,fmask=0002,dmask=0002 0 2 UUID=OTRO_UUID /media/pi/Mi\040Disco\0402 exfat defaults,uid=1000,gid=1000,fmask=0002,dmask=0002 0 2 La clave está en fmask=0002 y dmask=0002, que otorgan permisos de escritura al grupo, permiso que Emby funcione. Cuando termina, pulsa Ctrl + X, luego Y (o S), y Enter para guardar. Paso 4: Aplicar los cambios Primero, desmonta los discos si están montados: sudo umount "/media/pi/Mi Disco 1" Luego, aplica la nueva configuración de fstab sin reiniciar: sudo mount -a Si este comando no devuelve ningún error, ¡lo ha entendido! Ya puedes ir a Emby y borrar archivos. Para confirmar que todo es permanente, reinicia tu Raspberry Pi con sudo reboot. Espero que esto ayude a otros usuarios. Hecho y traducido con IA, puede haber errores, comprueba y hazlo con cautela. ------ Hello everyone, If you're using Emby on a Raspberry Pi (or any other Linux system) with external hard drives formatted in exFAT and you can't delete files ("Access Denied" error), this is the definitive solution I found. The exFAT file system doesn't allow Linux permissions. Therefore, even if you use commands like sudo chmod 775, the changes aren't applied and Emby doesn't have write or delete permissions. The real problem is how the system "mounts" the hard drive by default. The Solution: Permanent Mounting with fstab The solution is to tell the system to always mount hard drives with the correct permissions. To do this, we'll edit the fstab file. Step 1: Identify Your Hard Drives First, you need the unique identifier (UUID) for each of your drives. Open a terminal and run: sudo blkid Find your drives in the list and copy the UUID="..." value for each one. For example: UUID="1EE5-89A0". Step 2: Create Mount Points (if they don't exist) Make sure the mounts where the drives will be mounted exist. Replace /media/pi/MyDisk with your actual path. If your mounts have spaces, use quotes. sudo mkdir "/media/pi/MyDisk 1" sudo mkdir "/media/pi/MyDisk 2" Step 3: Edit the fstab file Open the configuration file with the nano editor: sudo nano /etc/fstab Go to the end of the file and add a line for each of your drives, using the following template. VERY IMPORTANT: Replace UUID_OF_YOUR_DISK with the UUID you copied in step 1. Replace /media/pi/My\040Disk\0401 with the path to your disk. Each space in the path must be replaced with \040! Make sure the uid and gid match your user. On Raspberry Pi OS, they are usually 1000 for the pi user. # Hard drives for Emby UUID=YOUR_DRIVE_UUID /media/pi/My\040Disk\0401 exfat defaults,uid=1000,gid=1000,fmask=0002,dmask=0002 0 2 UUID=OTHER_UUID /media/pi/My\040Disk\0402 exfat defaults,uid=1000,gid=1000,fmask=0002,dmask=0002 0 2 The key is fmask=0002 and dmask=0002, which grant write permissions to the group, allowing Emby to run. When finished, press Ctrl + X, then Y (or S), and Enter to save. Step 4: Apply the Changes First, unmount the disks if they are mounted: sudo umount "/media/pi/MyDisk1" Then, apply the new fstab settings without rebooting: sudo mount -a If this command doesn't return any errors, you've got it! You can now go to Emby and delete files. To confirm that everything is permanent, reboot your Raspberry Pi with sudo reboot. I hope this helps other users. Made and translated with AI, there may be errors, please check and do so with caution. Edited October 11, 2025 by NAA67 1
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