Disabling SMBv1
Disabling SMBv1
I have recently disabled SMBv1 on my Win10 workstation and can no longer access samba shares on a CentOS 6.7 server running Samba 3.6.23-45.el6_9.
I reconfigured /etc/samba/smb.conf with the following:
min protocol = SMB2
max protocol = SMB3
But am still unable to see the shares from Windows. I've tried a mixture of server min protocol = SMB2 etc. but nothing seems to work. When I try to access the share, I get the following in /var/log/samba/
[2017/11/03 14:26:26.646887, 0] smbd/process.c:525(init_smb_request)
init_smb_request: invalid wct number 255 (size 178)
Searching for that error isn't providing me with any hints. Anyone got any ideas please?
I reconfigured /etc/samba/smb.conf with the following:
min protocol = SMB2
max protocol = SMB3
But am still unable to see the shares from Windows. I've tried a mixture of server min protocol = SMB2 etc. but nothing seems to work. When I try to access the share, I get the following in /var/log/samba/
[2017/11/03 14:26:26.646887, 0] smbd/process.c:525(init_smb_request)
init_smb_request: invalid wct number 255 (size 178)
Searching for that error isn't providing me with any hints. Anyone got any ideas please?
Re: Disabling SMBv1
You'll almost certainly need to update to 6.9 which you should have done ages ago anyway. Your samba package is up to date but it probably has dependencies on the cifs kernel module which will only be in the latest kernel-2.6.32-696.13.2.el6.x86_64
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Disabling SMBv1
Hi Trevor,
Thanks for your reply; I just checked properly there (/etc/redhat-release rather than what the VM host was telling me!) and it turns out I am on 6.9. What else could it potentially be?
Calum
Thanks for your reply; I just checked properly there (/etc/redhat-release rather than what the VM host was telling me!) and it turns out I am on 6.9. What else could it potentially be?
Calum
Re: Disabling SMBv1
What does uname -a say?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Disabling SMBv1
Linux servername 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Re: Disabling SMBv1
Looks like you need to reboot to get the newer kernel active. Yours is 2.6.32-573.7.1.el6.x86_64 from 2015 and the latest is 2.6.32-696.13.2.el6.x86_64.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Disabling SMBv1
That's the new kernel active but still having problems; Windows 10 workstations with SMB1 removed can't log in whilst those with it still active can, despite the line
being added to /etc/samba/smb.conf
I'm totally confused!
Code: Select all
min server protocol = SMB2
I'm totally confused!
Re: Disabling SMBv1
It's not something I've tried but I do know that you definitely needed to be on the latest of everything to even try as it's something that will only recently have been fixed. Hopefully someone else that's already done it can help.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Disabling SMBv1
No worries; thanks for your help though.
-
- Posts: 18
- Joined: 2018/01/12 01:36:06
Re: Disabling SMBv1
Hi,clum2 wrote:That's the new kernel active but still having problems; Windows 10 workstations with SMB1 removed can't log in whilst those with it still active can, despite the linebeing added to /etc/samba/smb.confCode: Select all
min server protocol = SMB2
I'm totally confused!
I think this is exactly the problem. Your parameter is not correct in smb.conf, therefore smbv1 enabled Windows still access it.
Try simply 'protocol = SMB2' instead of the 'min server protocol = SMB2' (restarting samba afterwards). Just did it with Win10 VM to verify.
The 'min protocol' should also work; I think the 'server' part is where you went wrong.
Regards