Ankil
IImmich
•Created by Ankil on 2/8/2025 in #help-desk-support
Correct permissions of database folders
Hello everybody,
I was setting up Immich on my debian server with an AI because I'm really new to Docker and linux in general.
I put the databases on another disk at /mnt/data.
At some point the AI tell me to check the user that Immich is using and to change the ownership of the DB;
Run this to check the user ID in the Immich container
docker inspect immich_server | grep -i user
7. Set correct permissions
sudo chown -R root:root /opt/stacks/immich
sudo chmod -R 755 /opt/stacks/immich
sudo chown -R 1001:1001 /mnt/data/immich
So I did a compose up to start the container and it seemed to work, then I tried to get the user ID of Immich but it comes out empty:
docker inspect immich_server | grep -i user
"UsernsMode": "",
"User": "",
"DB_USERNAME=postgres",
I checked in /etc/passwd and there is no Immich user.
Does it matter witch user Immich is using?
Should I change the ownerships like shown above?
Is Immich using my user since I started the compose up?
If I set up a immich.service, will the user be root then?
Thank you guys for your answers.
11 replies