dperson / samba

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

Need SMB 1 for old printer access #403

Open Maximus48p opened 2 years ago

Maximus48p commented 2 years ago

I have an old multi printer/scanner which can only network using SMB 1. Is SMB 1 still supported? Or do i need to download an older version?

Thanks in advanced!

ErikPrantare commented 2 years ago

Try changing the minimum protocols in /etc/samba/smb.conf to NT1. This is a dialect of SMB1, and works with my ps2 which also needs SMB1.

rsun-thoughtworks commented 2 years ago

I have an old multi printer/scanner which can only network using SMB 1. Is SMB 1 still supported? Or do i need to download an older version?

Thanks in advanced!

What is your approach?

If docker-compose, try this

version: '3.0'

services:
  samba:
    image: dperson/samba
    container_name: samba
    environment:
      TZ: 'EST5EDT'
    network_mode: "host"
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139/tcp"
      - "445:445/tcp"
    read_only: true
    tmpfs:
      - /tmp
    restart: unless-stopped
    stdin_open: true
    tty: true
    volumes:
      - /mnt/download/movies:/samba/public/seagate3t
    command: '-n -S -s "share;/mnt;yes;no;yes;all;" -p'

This capital -S is for set SMB1 as minimum version.

-S          Disable SMB2 minimum version

Hope this helps.

Biepa commented 1 month ago

In case someone else has a similar problem. My old scanner only could access the share after setting also the "ntlm auth" option.

ntlm auth = yes
min protocol = LANMAN