Skip to content

OS Permissions

terrelsa13 edited this page May 19, 2024 · 3 revisions

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