Nautilus and SMB1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Nautilus and SMB1

Karl Auer
My Synology NAS allows control of which version of SMB it uses. When I
tell it not to support SMB1, Nautilus stops working, and cannot mount
shares off the NAS.

I've researched the issue, and while I can find heaps of Samba-related
tips, nothing about Nautilus.

I used the Synology web interface to set the server protocol range to
SMB2/SMB2: Nautilus could not mount shares.

The Synology is using Samba under the hood. I edited its smb.conf
directly and set "protocol=SMB2" and rebooted the Synology to make sure
that all connections were closed. According to Wireshark, Nautilus was
still using SMB1 (header marker byte 0xFF) thereafter.

Edited smb.conf some more, this time setting "client min protocol" to
SMB2 and leaving the server min/max at SMB2/SMB2. Nautilus could not
mount shares ("Oops, something went wrong").

Put the protocol range back to SMB1/SMB2 and Nautlius can mount shares
again (as if the "client min protocol" setting were being ignored).

Basically, it looks as if Nautilus cannot mount an SMB share with
anything other than protocol level SMB1. Which is a bit sad as more and
more stuff is not offering SMB1 in the face of its brokenness.

Can anyone suggest an alternative file manager that (and this is
important) they *know for a fact* supports SMB2 or better?

Regards, K.


 --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Nautilus and SMB1

Colin Law
On 25 November 2017 at 02:11, Karl Auer <[hidden email]> wrote:

> My Synology NAS allows control of which version of SMB it uses. When I
> tell it not to support SMB1, Nautilus stops working, and cannot mount
> shares off the NAS.
>
> I've researched the issue, and while I can find heaps of Samba-related
> tips, nothing about Nautilus.
>
> I used the Synology web interface to set the server protocol range to
> SMB2/SMB2: Nautilus could not mount shares.
>
> The Synology is using Samba under the hood. I edited its smb.conf
> directly and set "protocol=SMB2" and rebooted the Synology to make sure
> that all connections were closed. According to Wireshark, Nautilus was
> still using SMB1 (header marker byte 0xFF) thereafter.
>
> Edited smb.conf some more, this time setting "client min protocol" to
> SMB2 and leaving the server min/max at SMB2/SMB2. Nautilus could not
> mount shares ("Oops, something went wrong").

Were you doing that on the NAS or on the Ubuntu machine? I have not
come across this myself but google suggests the solution may be, on
the PC, in /etc/samba/smb.conf in the [global] section to put
client max protocol = SMB3
which allows the PC to use up to smb3. Note max protocol, not min protocol.

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Nautilus and SMB1

Karl Auer
On Sat, 2017-11-25 at 09:06 +0000, Colin Law wrote:
> Were you doing that on the NAS or on the Ubuntu machine?

On the NAS.

>  I have not
> come across this myself but google suggests the solution may be, on
> the PC, in /etc/samba/smb.conf in the [global] section to put
> client max protocol = SMB3 which allows the PC to use up to smb3.
> Note max protocol, not min protocol.

Wellll - I'm not sure how adjusting the PC's samba config would help
with mounting shares on the NAS...?

In my scenario the PC is the client, the NAS is the server.

But maybe I should do that on the NAS. I'll try it.

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Nautilus and SMB1

Colin Law
On 25 November 2017 at 11:36, Karl Auer <[hidden email]> wrote:

> On Sat, 2017-11-25 at 09:06 +0000, Colin Law wrote:
>> Were you doing that on the NAS or on the Ubuntu machine?
>
> On the NAS.
>
>>  I have not
>> come across this myself but google suggests the solution may be, on
>> the PC, in /etc/samba/smb.conf in the [global] section to put
>> client max protocol = SMB3 which allows the PC to use up to smb3.
>> Note max protocol, not min protocol.
>
> Wellll - I'm not sure how adjusting the PC's samba config would help
> with mounting shares on the NAS...?
>
> In my scenario the PC is the client, the NAS is the server.
>
> But maybe I should do that on the NAS. I'll try it.

It is the samba client that is failing isn't it? When used by nautilus
on the PC. Or have I misunderstood something.
The setting on the PC allows the samba client (running on the PC) to
use the later version.

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Nautilus and SMB1

Karl Auer
On Sat, 2017-11-25 at 11:52 +0000, Colin Law wrote:
> It is the samba client that is failing isn't it? When used by
> nautilus on the PC. Or have I misunderstood something.
> The setting on the PC allows the samba client (running on the PC) to
> use the later version.

What program is "the samba client"?

I am able to mount SMB shares on an Ubuntu system with Nautilus when
Samba is not installed at all...

As far as I know, it is gvfs that does the mounting magic for Nautilus.
If I mount an SMB share, a new instance of gvfsd-smb appears in my
process table; if I unmount the share, the process disappears. There is
another program gvfsd-smb-browse that is in there from time to time,
not sure what starts it. At any rate, I'm 99% certain that these do not
reference smb.conf.

If you are talking about smbmount, I haven't tried that. Casual
googling suggests it does not have a problem with later versions of the
SMB protocol.

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Nautilus and SMB1

Colin Law
On 25 November 2017 at 12:22, Karl Auer <[hidden email]> wrote:

> On Sat, 2017-11-25 at 11:52 +0000, Colin Law wrote:
>> It is the samba client that is failing isn't it? When used by
>> nautilus on the PC. Or have I misunderstood something.
>> The setting on the PC allows the samba client (running on the PC) to
>> use the later version.
>
> What program is "the samba client"?
>
> I am able to mount SMB shares on an Ubuntu system with Nautilus when
> Samba is not installed at all...
>
> As far as I know, it is gvfs that does the mounting magic for Nautilus.
> If I mount an SMB share, a new instance of gvfsd-smb appears in my
> process table; if I unmount the share, the process disappears. There is
> another program gvfsd-smb-browse that is in there from time to time,
> not sure what starts it. At any rate, I'm 99% certain that these do not
> reference smb.conf.

Yes I think you are right, nautilus smb shares it seems are not the
same as those mounted using cifs. I think nautilus may use gvfs-mount
but where it has its config I don't know, and whether it has problems
with smb version I also don't know. I notice there is a file
/usr/share/doc/nautilus-share/examples/smb.conf but whether that is
relevant I don't know.  I don't seem to know a lot about this at all.
Sorry.

Coin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users