Right now reading files in /var/lib/immich requires sudo, I want to be able to access the images in apps like Obsidian (I want to symlink the media folder into my vault so I embed images in my notes).
If I change the permissions with sudo chmod, would the permissions be changed back at all by other programs, like whenever I upload new images? Should I change services.immich.mediaLocation to inside my home folder?
Most of the time it is not a good idea to access the files of a service directly. You should rather find a way to access it via the designed interfaces.
I’m not using immich but have you checked out External Library | Immich? It seems like this is what you might be looking for.
Unlikely, but you would have to check the immich code for that. Of course, new files will have whatever permissions immich sets, or failing that, umask takes over.
You asked this before, right? The service user cannot access your home dir.
For anyone else reading this post, an external storage like @eblechschmidt suggests is probably the best way to do this, but using immich like this at all seems like a mistake to me.
Using immich’s “share link” feature and using an image embed in obsidian would be the intended mechanism, after all, obsidian vaults can be shared with other machines (where the immich paths aren’t present), and immich should not really be hosted on a workstation in the first place.
I’m not 100% certain immich and obsidian support using HTTP basic auth for this (though they should), if they do not this would be a good use case for a new obsidian plugin (or worth an upstream issue or two).