Windows 10 can't connect to Ubuntu 16.04 samba

倾然丶 夕夏残阳落幕 提交于 2021-01-29 12:04:48

问题


I reinstall Ubuntu 16.04 Desktop 32bit on an old laptop and setup samba as https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#0 mentions. When I try to connect from a Windows 10 or Windows 7 machine I get the following: Windows can't communicate with the device or resource(192.168.1.50) The resource is available but is not responding to connection attempts.

any suggestion?


回答1:


Samba (SMBv1 protocol) is no longer supported on Windows 10. To temporarily re-enable the SMBv1 protocol on Windows 10 follow these steps:

  1. Open Control Panel.
  2. Click on Programs.
  3. Click on Turn Windows features on or off link.
  4. Expand the SMB 1.0/CIFS File Sharing Support option.
  5. Check the SMB 1.0/CIFS Client option.
  6. Click the OK button.
  7. Click the Restart now button.

I hope that helps. You should only use these steps as a temporary solution.

Reference: https://www.windowscentral.com/how-access-files-network-devices-using-smbv1-windows-10




回答2:


I had a similar problem.

The problem is that Windows did not ask me for the samba user credentials and only generated an error 0x80070035.

So I did the following:

  1. Go to "This PC"
  2. Click on "Map network drive"
  3. As Folder add "\\samba server IP \ share name"
  4. Check the "Connect using different credentials"
  5. Finish

Now windows should ask you the samba user credentials.




回答3:


I have this problem and able to fix this with Windows 10 and Ubuntu 20.04 Focal Fossa without installing SMB v1 or change the regedit. There are few things need to be changed in /etc/samba/smb.conf

   passdb backend = tdbsam
   security = user

Change the networking

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
interfaces = 192.168.100.63 wlp1s0

bind interfaces only = yes

And change user

#map to guest = bad user
force user = username

Don't forge to add your username into smb. The detailed step with images documented over here: https://www.yodiw.com/install-samba-ubuntu-20-04-and-windows-10-sharing/




回答4:


In /etc/samba/smb.conf should add this

[global]
    client min protocol = SMB3
    client max protocol = SMB3

In windows 10 should edit this enter in Local Group Policy Editor (search in windows) Computer Configuration -> Administrative Templates -> Network -> Lanman Workstation -> Enable Insecure Guest Logon - Enabled



来源:https://stackoverflow.com/questions/58528469/windows-10-cant-connect-to-ubuntu-16-04-samba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!