Docker image of samba: problems with write acess

I am using the docker-compose.yml with docker compose:

## Version, die openhab installiert und restore.zip reinkopiert - das hat geklappt!!!
## Ergänzung: Samba
services:
  openhab:
    image: "openhab/openhab:4.3.1"
    container_name: openhab
    depends_on:
      - mosquitto
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - data_openhab_conf:/openhab/conf
      - data_openhab_addons:/openhab/addons
      - data_openhab_userdata:/openhab/userdata
      - "./restore:/openhab/restore"
      - "./backup:/openhab/backup"
    command: "bash -c 'if [ -e /openhab/restore/restore.zip ]; then echo y |/openhab/runtime/bin/restore /openhab/restore/restore.zip ; fi; exec tini -s ./start.sh server'"
    environment:
      CRYPTO_POLICY: "unlimited"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"

  frontail:
    image: welteki/frontail-openhab:latest
    container_name: frontail
    restart: always
    ports:
      - "9001:9001"
    volumes:
      - /var/lib/docker/volumes/openhab_data_openhab_userdata/_data:/openhab/userdata:ro \

  mosquitto:
    image: eclipse-mosquitto:latest
    container_name: mosquitto
    restart: always
    volumes:
      - data_mosquitto_config:/mosquitto/config
      - data_mosquitto_data:/mosquitto/data
      - data_mosquitto_log:/mosquitto/log
    ports:
      - 1883:1883
      - 8883:8883
    environment:
      TZ: 'Europe/Berlin'
    networks:
      app-nw:
        aliases:
          - mqtt

  samba:
    image: dperson/samba
    container_name: samba
    restart: always
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139/tcp"
      - "445:445/tcp"
    read_only: false
    stdin_open: true
    healthcheck:
      disable: true
    environment:
    - TZ='Europe/Berlin'
    - PUID=9001
    - PGID=9001
    - WORKGROUP=workgroup
    - PERMISSIONS=true
    - RECYCLE=false
    - SHARE1=openhab_conf;/shares/openhab_conf;yes;no;yes;all;all;all;
    - SHARE2=openhab_addons;/shares/openhab_addons;yes;no;yes;all;all;all;
    - SHARE3=openhab_userdata;/shares/openhab_userdata;yes;no;yes;all;all;all;
    - SHARE4=mosquitto_config;/shares/mosquitto_config;yes;no;yes;all;all;all;
    - SHARE5=mosquitto_log;/shares/mosquitto_log;yes;no;yes;all;all;all;
    - SHARE6=docker;/shares/docker;yes;no;yes;all;all;all;
    - SHARE7=log;/shares/log;yes;no;yes;all;all;all;
    volumes:
      - data_openhab_conf:/shares/openhab_conf
      - data_openhab_addons:/shares/openhab_addons
      - data_openhab_userdata:/shares/openhab_userdata
      - data_mosquitto_config:/shares/mosquitto_config
##    command: '-w PRIVAT -s "mosq_ro;/shares/mosquitto_config;yes;yes;no;openhabian;none;none;Mosquitto Config RO" -s "mosq_rw;/shares/mosquitto_config;yes;no;no;alice;none;none;Mosquit>      - data_mosquitto_log:/shares/mosquitto_log
      - /docker:/shares/docker
      - /var/log:/shares/log

volumes:
  data_openhab_conf:
  data_openhab_addons:
  data_openhab_userdata:
  data_mosquitto_config:
  data_mosquitto_data:
  data_mosquitto_log:

networks:
  app-nw:
    internal: false
    driver: bridge
    driver_opts:
      com.docker.network.bridge.name: app-openhab4
  backend-nw:
    internal: true
    driver: bridge
    driver_opts:
      com.docker.network.bridge.name: be-openhab4


Result:
I have rw-access to

docker
log
mosquitto_config
mosquitto_log

and only ro-access to

openhab_addons
openhab_conf
openhab_userdata

But I need rw-access to the openhab-directories!
Any suggestions?

I have a single recommendation: do not use 3 year old Docker images. They might contain huge security issues, which are known today and continue to exist in the image.

Thank you, I will try to work with
https://hub.docker.com/r/dockurr/samba

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.