Fixing File Permission Problem of Jellyfin on Arch Linux
This tutorial should work for other Linux distributions, but I only tested it on Arch Linux.
In order to add a directory to a Jellyfin library, Jellyfin needs to access the directory and all its parent directories. If you add ~/Videos
to a library, Jellyfin fails to access it. Jellyfin runs as user jellyfin
. Jellyfin can access ~/Videos
(other::r-x
) but can’t access its parent ~
(other::---
).
|
|
To fix it, grant Jellyfin execution permission for the home directory.
|
|
Now, Jellyfin can access not only ~/Videos
but also other directories under ~
, which is unsafe. We only want Jellyfin to access necessary directories. We’d better remove the permission for Jellyfin and create a dedicated directory for it.
|
|
References:
Further reading:
- File permissions and attributes - ArchWiki
- Users and groups - ArchWiki
- Access Control Lists - ArchWiki
- Comment from u/jcdick1