dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.52k stars 514 forks source link

chdir_current_service: vfs_ChDir(/data) failed: Permission denied #409

Closed AntoineGlacet closed 2 years ago

AntoineGlacet commented 2 years ago

Hi!

I am having an error I cannot understand. I try to connect from a PC on Windows to a container on Rpi4/Ubuntu-20.04 64 bits. I am having the error on the title and I am clueless as to why.

here is my docker-compose file:

services:
  samba:
    container_name: samba
    image: dperson/samba
    volumes:
      - ${DATA}:/data
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139/tcp"
      - "445:445/tcp"
    command: >
      samba.sh
        -s "rpi4;/data;yes;no;yes;all"
        -u "bob;1234"
    restart: unless-stopped

My PC workgroup is WORKGROUP, even if I add the option, I get the same error

AntoineGlacet commented 2 years ago

It was a Linux permission issue, solved with chown and chmod. Not a problem with the container.