Hi, I’ve tried running samba from docker compose on ubuntu server with this resource https://hub.docker.com/r/dockurr/samba I changed the default volume from “- ./samba:/storage” to “- /mnt/my_ext_hdd/my_dir/my_subdir” The container deploys fine, but I get permission error when trying to access the shared volume from windows? Anyone with some suggestionshoew to fix? Thanks

  • BakedCatboy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 days ago

    Have you done the steps under “How do I modify the default credentials?” and “How do I modify the permissions?” from the readme?

    • basic_user@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      7 days ago

      I did fiddle with it. I tried putting my server user and password in there, but didn’t get it working.

      • BakedCatboy@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        What did you set UID and GID to and what is the output of “ls -an” when run inside of the shared directory? You can remove the file names for privacy. I just tested the docker container and it seems to work between my Linux laptop and my windows 11 desktop using this docker compose:

        services:
          samba:
            image: dockurr/samba
            container_name: samba
            environment:
              NAME: "Data"
              USER: "samba"
              PASS: "secret"
              UID: "1000"
              GID: "1000"
            ports:
              - 445:445
            volumes:
              - ./samba:/storage
            restart: always
        

        The files in my shared folder are owned by UID/GID 1000/1000 which is why I put those as my UID/GID, and when I logged in from Windows I entered samba and secret as the password and I was able to access and modify the files in the shared folder.