Wrong GID and UID for mounted directories. #358

Closed
opened 2026-04-05 16:16:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Telmo on 12/12/2025

Running in docker in a Ubuntu/Debian based distribution when mounting a directory for /postgresus-data files are owned by dhcpd:syslog

docker compose sample:

 services:
  postgresus:
    image: rostislavdugin/postgresus:latest
    container_name: postgresus
    hostname: postgresus
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - /backups/postgresus:/postgresus-data

results in:

❯ ls -la /backups/postgresus
Permissions Size User   Group  Date Modified Name
drwxr-xr-x     - dhcpcd syslog 12 Dec 06:40   ./
drwxr-xr-x     - root   root   12 Dec 06:29   ../
drwxr-xr-x     - dhcpcd syslog 12 Dec 07:05   backups/
drwx------     - dhcpcd syslog 12 Dec 07:08   pgdata/
drwxr-xr-x     - dhcpcd syslog 12 Dec 07:05   temp/
.rw-------    72 dhcpcd syslog 12 Dec 06:40   secret.key

❯ ls -n /backups/postgresus
Permissions Size User Group Date Modified Name
drwxr-xr-x     - 100  102   12 Dec 07:05   backups/
drwx------     - 100  102   12 Dec 07:08   pgdata/
drwxr-xr-x     - 100  102   12 Dec 07:05   temp/
.rw-------    72 100  102   12 Dec 06:40   secret.key

I am not sure what gid/uid would be best to own the files, but the current ones are very confusing.

*Originally created by @Telmo on 12/12/2025* Running in docker in a Ubuntu/Debian based distribution when mounting a directory for `/postgresus-data` files are owned by `dhcpd:syslog` docker compose sample: ``` services: postgresus: image: rostislavdugin/postgresus:latest container_name: postgresus hostname: postgresus restart: unless-stopped env_file: - .env volumes: - /backups/postgresus:/postgresus-data ``` results in: ``` ❯ ls -la /backups/postgresus Permissions Size User Group Date Modified Name drwxr-xr-x - dhcpcd syslog 12 Dec 06:40  ./ drwxr-xr-x - root root 12 Dec 06:29  ../ drwxr-xr-x - dhcpcd syslog 12 Dec 07:05  backups/ drwx------ - dhcpcd syslog 12 Dec 07:08  pgdata/ drwxr-xr-x - dhcpcd syslog 12 Dec 07:05  temp/ .rw------- 72 dhcpcd syslog 12 Dec 06:40  secret.key ❯ ls -n /backups/postgresus Permissions Size User Group Date Modified Name drwxr-xr-x - 100 102 12 Dec 07:05  backups/ drwx------ - 100 102 12 Dec 07:08  pgdata/ drwxr-xr-x - 100 102 12 Dec 07:05  temp/ .rw------- 72 100 102 12 Dec 06:40  secret.key ``` I am not sure what gid/uid would be best to own the files, but the current ones are very confusing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#358