samba icon indicating copy to clipboard operation
samba copied to clipboard

Windows does not connect

Open itsebyte opened this issue 5 months ago • 0 comments

Thats my docker-compose.yaml file:

services:
  samba:
    image: dockurr/samba
    container_name: samba
    restart: always
    environment:
    - PUID=1001
    - PGID=1001
    #  NAME: "Data"
    #  USER: "samba"
    #  PASS: "secret"
    ports:
      - 445:445
    volumes:
      - /opt/Samba/:/storage
      - /opt/Samba/smb.conf:/etc/samba/smb.conf
      - /opt/Samba/users.conf:/etc/samba/users.conf

My smb.conf:

[global]
        server string = samba
        idmap config * : range = 3000-7999
        security = user
        server min protocol = SMB2

        # disable printing services
        load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes

[media]
        path = /mnt/media
        comment = Shared
        valid users = @smb
        browseable = yes
        writable = yes
        read only = no
        force user = username
        force group = username

My users.conf:

username:1001:smb:1002:password

On the Host I created a group:

groupadd -g 1002 smb

and a user:

useradd -m username

So, i can't connect on windows to the mounted device in the VM

itsebyte avatar Nov 16 '25 11:11 itsebyte