Permissions for emby media server

Hi.

I’m trying to setup emby on my computer and am getting an error that emby requires write access to a directory, however:
$ ls -l /home/emby/Library/
total 8
drwxrwxr-x 2 emby emby 4096 Sep 3 18:39 DVR
drwxrwxr-x 2 emby emby 4096 Sep 3 18:41 Movies

I’m getting the error when setting up the DVR function and directory.

I found this:wiki-archlinux-org/index.php/Emby

==============
Write Permissions

Emby runs under the user and user group emby using systemd’s DynamicUser feature. By default, Emby will have at most read permissions to your media files thanks to systemd’s filesystem abstraction.

Optionally you might want to give emby write permissions and enable media deletion or local metadata saving. To do that you can extend the systemd service:

/etc/systemd/system/emby-server.service.d/write-permissions.conf

SupplementaryGroups=share
ReadWritePaths=/mnt/share

This will add the emby user to the share group, and enable write permission to the /mnt/share directory through systemd. Note that you still need to make sure the share group has write permissions to the actual directory.

But…I honestly don’t know what that means.

Am I suposed to created the directory and file “emby-server.service.d/write-permissions.conf”? And…add each library directory to it?

Any help here is appreciated.

Thanks,
John

Hi and welcome!

Yes that does it mean.

Just create a file there:

sudo touch /etc/systemd/system/emby-server.service.d/write-permissions.conf

then

sudo nano /etc/systemd/system/emby-server.service.d/write-permissions.conf

and put this into it and save it:

[Service]
SupplementaryGroups=share
ReadWritePaths= /home/emby/Library/

You probably have to change the permissions then:

sudo chown -R emby:share /home/emby/Library/

and then restart the service:

systemctl restart emby-server.service

PS: I never used emby, but it should work.

2 Likes

Thanks for that. Actual Arch documentation kind of sucks.

I had to use “SupplementaryGroups=users” to get it to work tho. emby wouldn’t even start with “share.”

And I still have /home/emby owned by emby:emby. IDK…it works.

Thanks.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.