Can't connect to 20.04 samba server

Fresh install of 20.04, trying to connect from 16.04

I did my normal:
sudo apt-get install samba samba-common-bin
sudo nano /etc/samba/smb.conf
sudo smbpasswd -a userName

But I can't connect, get: "Failed to mount Windows share: Connection timed out"

Did a bit of Google which said I needed to do this:
sudo apt install tasksel
sudo tasksel install samba-server
sudo systemctl restart smbd

No go :frowning:

sudo systemctl status smbd
Gives:

● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-05-07 17:35:38 CDT; 2h 18min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 65863 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 65887 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 38258)
Memory: 12.7M
CGroup: /system.slice/smbd.service
├─65887 /usr/sbin/smbd --foreground --no-process-group
├─65889 /usr/sbin/smbd --foreground --no-process-group
├─65890 /usr/sbin/smbd --foreground --no-process-group
└─65893 /usr/sbin/smbd --foreground --no-process-group

May 07 17:35:38 FX705GM systemd[1]: Stopping Samba SMB Daemon...
May 07 17:35:38 FX705GM systemd[1]: smbd.service: Succeeded.
May 07 17:35:38 FX705GM systemd[1]: Stopped Samba SMB Daemon.
May 07 17:35:38 FX705GM systemd[1]: Starting Samba SMB Daemon...
May 07 17:35:38 FX705GM systemd[1]: Started Samba SMB Daemon.
May 07 17:50:47 FX705GM smbd[66048]: pam_unix(samba:session): session opened for user userName by (uid=0)
May 07 17:50:47 FX705GM smbd[66048]: pam_unix(samba:chauthtok): conversation failed
May 07 17:50:47 FX705GM smbd[66048]: pam_unix(samba:chauthtok): conversation failed
May 07 17:50:47 FX705GM smbd[66048]: pam_unix(samba:session): session closed for user userName

What have I missed?

New SAMBA excludes NT1 connections and browsing. That is why 16.04 cannot find the 20.04 server. On your system with 20.04, add the following two lines in the [global] section of your /etc/samba/smb.conf:

server min protocol = NT1
client min protocol = NT1

Enabling NT1 protocols is considered a security risk now.

Good luck.

djb

1 Like

Thanks! that fixed it. But If its such a security risk why hasn't 16.04 but updated?