Connecting Windows 10 Clients to Ubuntu Samba Server

I recently set up an Ubuntu Samba Server on my LAN but the Windows 10 clients couldn’t access it. The following instructions work for me.

On your Windows 10 client:

1. Open PowerShell with admin authority and execute this command:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 0 -Force

2. Open Command Prompt with admin authority and execute these two commands:

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi

sc.exe config mrxsmb20 start= disabled

3. Go to “Control Panel -> Programs”

Select “Turn Windows features on or off

There you will find “SMB 1.0/CIFS File Sharing Support”. Enable it.

Reboot your PC, hopefully you can now discover your drive.


Recently I’ve had to do one more step to get this working, and that’s to enable insecure guest logons in the Local Group Policy Editor.

To start, open a Run prompt (Win + R) and type gpedit.msc

When the Local Group Policy Editor launches, open these settings:

Computer Configuration -> Administration Templates -> Network -> Lanman Workstation

Select the Enable insecure guest logins setting, and set it to enabled.

That’s it, you should be able to access your samba share now.

For more information on this last step, see here.

Update 2:

If you are using an Ubuntu 20.04 server you need to update your server’s smb.conf file.

sudo vim /etc/samba/smb.conf

Look for this setting near the top of the file:

workgroup = WORKGROUP

Just below it, add the following setting, then save and close the file:

server min protocol = NT1

Now restart the samba service:

sudo service smbd restart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s