Skip to content

OS Permissions

terrelsa13 edited this page Jul 4, 2025 · 5 revisions

For all OSes

The user Emby/Jellyfin runs as; needs to have permissions to delete the media files from the disk they live on. MUMC sends an API request to Emby/Jellyfin to delete the media from the disk.

  • If Emby/Jellyfin do not have permissions to delete media files from the disk:
    • You will NOT get errors when REMOVE_FILES: false.
      • No delete API calls are sent to Emby/Jellfin.
    • You will get errors errors when REMOVE_FILES: true.
      • Delete API calls are sent to Emby/Jellfin.

This only applies to Linux

Original Issue Posting

What the error looks like in the server logs.

What the error looks like in the console output.

For anyone else who may run into this issue; as @clara-j mentions you will need to add the user emby to the group that has permissions to delete your media and then make the group permissions for that folder rwx. BUT, this will also give any other users in your group rwx permissions allowing them to delete media.

The better option is to specifically give the user emby rwx permissions using an Access Control List (ACL).

You only need to do ONE of the following...

Easy more secure way:

Create an ACL to specifically give the user emby permission to delete media without giving every user in the group owning the media folder(s) permission to delete media.

Setup an ACL giving the user emby permission to del for each media_item to be deletedete existing media files:

setfacl -m u:emby:rwx -R /path/to/your/media/folder

Setup a defualt ACL giving the user emby permission to delete future media files:

setfacl -d -m u:emby:rwx -R /path/to/your/media/folder

Easy less secure way:

Add user emby to your group. Replace _yourgroupname_ with the name of the group that owns your media folder(s).

usermod -a -G yourgroupname emby

Change the permissions of your media folder(s) so anyone in _yourgroupname_ can delete media.

chmod -R g+rwx /path/to/your/media/folder

Applies only if using ACLs (via setfacl) on a RaidZ pool:

sudo zfs set aclinherit=passthrough PoolName/zfsName
sudo zfs set acltype=posixacl PoolName/zfsName

Additional Information - MUMC extras.

Clone this wiki locally