[Samba] Can't get Win7 to mount

Mike Brown brown at mrvideo.vidiot.com
Sun Mar 2 09:29:17 UTC 2025


On Sat, Mar 01, 2025 at 11:51:46AM +0000, Rowland Penny via samba wrote:
> On Sat, 1 Mar 2025 04:22:16 -0600
> Mike Brown via samba <samba at lists.samba.org> wrote:
> 
> > On Sat, Mar 01, 2025 at 09:36:24AM +0000, Rowland Penny via samba
> > wrote:
> > > On Fri, 28 Feb 2025 16:39:56 -0600
> > > Mike Brown via samba <samba at lists.samba.org> wrote:
> > > 
> > > > Fedora 41
> > > > Samba 4.21.4
> > > > 
> > > > The smbd under Fedora 27 (yes it is old) has no problem letting
> > > > Win7 mount stuff.
> > > > 
> > > > Any ideas on getting Win7 to mount from the newer Fedora?
> > > > 
> > > 
> > > This is all down to the SMB protocols being used. Samba, since
> > > 4.11.0, uses a minimum of SMBv2, your Win7 machine uses SMBv1.
> > > 
> > > You probably just need to add 'vers=1.0' to your mount command on
> > > fedora, see 'man mount.cifs' for more information.
> > 
> > I found the following in the man page for smb.conf:
> > 
> > The value of the parameter (a string) is the highest protocol level
> >            that will be supported by the client.
> > 
> >            Possible values are :
> > 
> >                   •   CORE: Earliest version. No concept of user
> > names.
> > 
> >                   •   COREPLUS: Slight improvements on CORE for
> > efficiency.
> > 
> >                   •   LANMAN1: First modern version of the protocol.
> > Long filename support.
> > 
> >                   •   LANMAN2: Updates to Lanman1 protocol.
> > 
> >                   •   NT1: Current up to date version of the
> > protocol. Used by Windows NT. Known as CIFS.
> > 
> >                   •   SMB2: Re-implementation of the SMB protocol.
> > Used by Windows Vista and later versions of Windows. SMB2 has sub
> >                       protocols available.
> > 
> >                              •   SMB2_02: The earliest SMB2 version.
> > 
> >                              •   SMB2_10: Windows 7 SMB2 version.
> > 
> >                       By default SMB2 selects the SMB2_10 variant.
> > 
> >                   •   SMB3: The same as SMB2. Used by Windows 8. SMB3
> > has sub protocols available.
> > 
> >                              •   SMB3_00: Windows 8 SMB3 version.
> > 
> >                              •   SMB3_02: Windows 8.1 SMB3 version.
> > 
> >                              •   SMB3_11: Windows 10 SMB3 version.
> > 
> >                       By default SMB3 selects the SMB3_11 variant.
> > 
> >            Normally this option should not be set as the automatic
> > negotiation phase in the SMB protocol takes care of choosing the
> > appropriate protocol.
> > 
> > Notice the last paragraph.  Supposidly negotiation is supposed to
> > take place, meaning that I shouldn't have to do anything.  I added
> > the line in my usenet-new section with SMB2, but there was no
> > difference.  Something else is wrong?
> > 
> 
> Yes, negotiation does take place, it starts at SMBv3 and negotiates
> down to an agreeable mutual level. The minimum default for Samba was
> changed at 4.11.0 to SMBv2, so if your Win7 is capable of SMBv2, it
> should work, but you may have to set something in the registry, what, I
> do not know, I do not use win7 now.

What is strange is that it is working fine with V3(?) under Fedora 27.
The only difference, that I know of, is V4 under F41.

That said, I am thinking about enabling the Win7 nfs client and use it
instead.  I haven't configured a Linux box to export files via nfs in
ages. :-)

We shall see what I get working first.

MB
-- 
e-mail: vidiot at vidiot.com | vidiot at vidiot.net              /~\ The ASCII
        6082066843 at email.uscc.net (140 char limit)         \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                             X  Against
             http://vidiot.net/                            / \ HTML Email
GEORDI: "Data, could you try being a little more positive..."
  DATA: "I hope we die quickly!" (Star Trek: Picard - 4/13/23)



More information about the samba mailing list