[solved] accessing windows 10 machines from linux

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
callmejoe
Level 2
Level 2
Posts: 82
Joined: Fri Mar 11, 2016 11:43 pm

[solved] accessing windows 10 machines from linux

Post by callmejoe » Mon Apr 09, 2018 11:30 am

so from what i've read so far since MS has disabled SMB version 1 in their last update this breaks sharing access from linux. I can't connect from linux mint or from raspbian any longer.

re-enabling SMBv1 on windows 10 brings share access back, but i know there are security issues with SMBv1. i've tried other fixes i've found in various posts around, but none have worked for me.

i came across this post from altair4, viewtopic.php?f=42&t=249758, but as I read through i can't tell exactly what I need to do.
Last edited by callmejoe on Fri Apr 13, 2018 9:42 pm, edited 3 times in total.

altair4
Level 19
Level 19
Posts: 9026
Joined: Tue Feb 03, 2009 10:27 am

Re: accessing windows 10 machines from linux

Post by altair4 » Mon Apr 09, 2018 12:44 pm

From your link:
Good News

[1] On the smbclient end you edit /etc/samba/smb.conf and add the following line - right under the workgroup = WORKGROUP line:

Code: Select all

client max protocol = SMB3
You didn't mention what version of Mint you are using or what desktop environemnt so I am going to guess:

Code: Select all

gksu xed /etc/samba/smb.conf
Find the line workgroup = WORKGROUP and right under it add this one:

Code: Select all

client max protocol = SMB3
Save the file then restart smbd:

Code: Select all

sudo service smbd restart
Restart your file manager and access the Win10 machine by name or ip address. So in nemo run smb://win10-host-name or smb://win10-ip-address.

Just keep in mind the Bad News:
Bad News

Samba client host browsing ( the Computer Browsing Service in Windows ) and SMB1 are linked. You can not have one without the other. When you set the client max protocol to anything other than SMB1 ( called NT1 in Samba ) going to Nemo > Network > Windows Network results in an empty space.
It's best you get used to this because this is the way Mint 19 will work.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

callmejoe
Level 2
Level 2
Posts: 82
Joined: Fri Mar 11, 2016 11:43 pm

Re: accessing windows 10 machines from linux

Post by callmejoe » Mon Apr 09, 2018 6:52 pm

thanks altair4.

client max protocol = SMB3

that did it.

i tried to add that line to my raspberry pi machine, but it didn't work. i figured since they are both based on debian it would work. oh well

callmejoe
Level 2
Level 2
Posts: 82
Joined: Fri Mar 11, 2016 11:43 pm

Re: accessing windows 10 machines from linux

Post by callmejoe » Tue Apr 10, 2018 1:45 pm

can i open up this thread again? i am having the same trouble accessing shares on my windows 10 machine from my raspberry pi. i know this is a linux mint fourm. but i came across altair4's thread here and i might be on to something

viewtopic.php?t=248847

so here is a screenshot after running smbclient
smbclient.png
so i see the shared folders but the connection still fails.

any advice?

User avatar
AZgl1500
Level 6
Level 6
Posts: 1381
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: accessing windows 10 machines from linux

Post by AZgl1500 » Tue Apr 10, 2018 1:46 pm

Install Teamviewer on both machines.


works for me, TV offers "file transfer mode"

altair4
Level 19
Level 19
Posts: 9026
Joined: Tue Feb 03, 2009 10:27 am

Re: accessing windows 10 machines from linux

Post by altair4 » Tue Apr 10, 2018 3:49 pm

I don't know if I can help you with the raspberry pi since I do not know anything about it.

But I can tell you that the output you posted and the error message that came with is unfortunately standard these days. For example:
altair@xub1404:~$ smbclient -L 192.168.1.208 -m SMB3 -U smbuser
Enter smbuser's password:
Domain=[VWIN10] OS=[] Server=[]

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
Documents Disk
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
Shared Disk
Users Disk
Connection to 192.168.1.208 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
Yet I can easily access the share with smbclient:
altair@xub1404:~$ smbclient //192.168.1.208/documents -m SMB3 -U smbuser
Enter smbuser's password:
Domain=[VWIN10] OS=[] Server=[]
smb: \> ls
. DR 0 Tue Apr 10 15:23:50 2018
.. DR 0 Tue Apr 10 15:23:50 2018
desktop.ini AHS 402 Tue Apr 10 15:23:50 2018
FromLin.txt A 0 Thu Nov 26 18:44:27 2015
gedit.txt A 1 Mon Sep 11 14:48:05 2017
My Music DHS 0 Mon Apr 2 11:16:57 2018
My Pictures DHS 0 Mon Apr 2 11:16:57 2018
My Videos DHS 0 Mon Apr 2 11:16:57 2018
OnWIn.txt.txt A 5 Tue Apr 19 16:05:23 2016
Untitled Document.txt A 6 Sun Jun 26 19:03:15 2016

8183295 blocks of size 4096. 3989657 blocks available
smb: \> quit
altair@xub1404:~$
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

callmejoe
Level 2
Level 2
Posts: 82
Joined: Fri Mar 11, 2016 11:43 pm

Re: accessing windows 10 machines from linux

Post by callmejoe » Tue Apr 10, 2018 4:58 pm

i'll head over to the raspi forums.

altair4
Level 19
Level 19
Posts: 9026
Joined: Tue Feb 03, 2009 10:27 am

Re: accessing windows 10 machines from linux

Post by altair4 » Wed Apr 11, 2018 7:11 am

I don't know how legitimate a test this was but I followed a Howto: https://thepi.io/how-to-run-raspberry-p ... -or-macos/ and downloaded this version of pi: https://www.raspberrypi.org/downloads/r ... i-desktop/. All of this done as a Virtualbox guest on Xubuntu host not Windows - and not on real hardware.

When I tried to access the Windows machine I could not. But after adding the client max protocol = SMB3 to smb.conf all was good.
RPI-Win10.png

My purpose here was focused on getting access to the Win10 box using the same change I would on Ubuntu or Mint so I did not add any other software or make any other configuration changes to the default settings of the OS. If I had perhaps my outcome would be different.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

callmejoe
Level 2
Level 2
Posts: 82
Joined: Fri Mar 11, 2016 11:43 pm

Re: accessing windows 10 machines from linux

Post by callmejoe » Fri Apr 13, 2018 9:41 pm

altair4 you really go above and beyond to help. i mean setting up a VM to test the pi? that's awesome!

i do have another raspberry pi that i did add the client max protocol = smb3 to and it is able to access windows 10 shares no problem. just must be something weird with my set up. i begrudgingly gave up and re-installed Raspbian and started from scratch. added client max protocol = smb3 to smb.conf and all is right in the world again.

thanks!

Post Reply

Return to “Other networking topics”