I tried to change the cache path (from the Emby interface’s Settings page) to a directory to which the emby user (emby) and its group (media) both have full permissions (the directory owner is emby, the group is media, and permissions are set to 775), but it kept telling me that it didn’t have write access.
Turns out the media group exists, but the emby user doesn’t.
I’d checked these instructions for the initial setup and so hadn’t realized the installer wouldn’t be creating an emby user: https://wiki.archlinux.org/title/Emby
If I go into Manjaro settings and create an emby user and assign it to the media group, what do I need to do about the password? I would think that the service would need to know it in order to start.
The linked article does not specify the creation of a password.
Does the service work without a password?
The service will run under the context of the specified user (using systemd’s DynamicUser feature) and does not log on to the system, however I have never used Emby,
Aha! I wasn’t aware of the DynamicUser feature. Sounds like I don’t need to be concerned about the fact that there is no emby user listed in the system. Thank you for that.
Still there’s the mystery of why Emby (the service) is saying it can’t write to /home/media_files/temp/ when the permissions are:
drwxrwsr-x 2 emby media 4096 Jun 11 07:48 temp
Here’s the emby-server.service file contents:
[Unit]
Description=Emby brings together your videos, music, photos, and live television
.
After=network.target
This will add the emby user to the media group, and enable write permission to the /mnt/media_files directory through systemd. Rinse and repeat for any additional media folders you might have.