dperson / samba

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

Even with guest=yes, windows still ask for password #455

Open shalak opened 8 months ago

shalak commented 8 months ago

Here's my configuration:

  samba:
    image: dperson/samba
    container_name: samba
    network_mode: host
    environment:
      TZ: 'Europe/Warsaw'
      NMBD: true
      GROUPID: 1000
      USERID: 1000
      WORKGROUP: WORKGROUP
    read_only: true
    env_file:
      - samba.env  # contains SMB_PASSWORD
    tmpfs:
      - /tmp
    restart: unless-stopped
    stdin_open: true
    tty: true
    volumes:
      - /srv/storage/install/:/mnt:z
      - /srv/storage/public/:/mnt-public:z
    command: '-s "instalki;/mnt;yes;yes;yes;;;;instalatory" -s "instalki-public;/mnt-public;yes;no;yes;mirek,guest;mirek;mirek,guest;instalatory-publiczne" -s "instalki-rw;/mnt;yes;no;no;mirek" -u "mirek;$$SMB_PASSWORD" -p'

Unfortunately, when I enter \\servername in windows explorer, it immediately asks for password. Even though, it should allow guest access to instalki and instalki-public shares (with instalki-public having guest write pemissions), and only when trying to access instalki-rw it should prompt for password.

I even tried starting the container with only single share via -s "instalki;/mnt;yes;yes;yes" and it still prompted for credentials...

What am I missing?

shalak commented 8 months ago

I made sure, on the windows client, that Enable Insecure Guest Logons it not disabled (also tried to set it explicitly to Enabled), didn't help:

image