Skip to content
GitHub1.1k

Permissions

The Docker image does not run as root. It runs with the user and group IDs set by PUID and PGID, both 1000 by default, and gives them ownership of the config folder at each start.

If you get a Permission denied error when editing the config folder from your host, your host user is not the one the container runs as.

  1. Find your user and group IDs:

    Terminal window
    id -u
    id -g
  2. Set them in your .env file:

    .env
    PUID=1001
    PGID=1001
  3. Restart the container:

    Terminal window
    docker compose up -d

On start, the container gives the folder to these IDs, and you can edit it again without sudo.

If config lives on a network share (NFS, SMB) that refuses ownership changes, Razzia may not be able to write to it. In that case, run the container as root:

.env
PUID=0
PGID=0