Can't force samba to use SMB2 or SMB3












0















I have a Debian server running smbd (Debian 9.3, samba 4.5.12) and an Ubuntu 17.10 client with which I mount samba shares using the gio mount (previously gvfs-mount) commmand: gio mount smb://server/storage



As both server and client are up to date, I would expect them to negotiate mounts with SMB3, or SMB2 at the least, but if I run smbstatus on the server the mount is using NT1 (which AFAIK is SMB1):



Samba version 4.5.12-Debian
PID Username Group Machine Protocol Version Encryption Signing
----------------------------------------------------------------------------------------------------------------------------------------
12164 darren darren 192.168.10.86 (ipv4:192.168.10.86:34052) NT1 - -

Service pid Machine Connected at Encryption Signing
---------------------------------------------------------------------------------------------
storage 12164 192.168.10.86 Thu Dec 21 22:49:30 2017 GMT - -

No locked files


If I add client min protocol = SMB3 to smb.conf, I can confirm that the change takes affect with testparm -v | grep protocol:



Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[home]"
Processing section "[storage]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

client ipc max protocol = default
client ipc min protocol = default
client max protocol = default
client min protocol = SMB3
server max protocol = SMB3
server min protocol = LANMAN1


But the output of smbstatus is the same, and the mounts are still using NT1 (have umounted and remounted). How can I force the gio mount command to use a later protocol, and why isn't it working by default?



Here is my smb.conf:



[printers]
guest ok=yes
comment=Attached printers
browseable=no
printable=yes
path=/var/spool/samba
use client driver=yes

[global]
log file=/var/log/samba/log.all
guest account=nobody
load printers=yes
obey pam restrictions=yes
socket options=TCP_NODELAY IPTOS_LOWDELAY
interfaces=br0
map to guest=Bad User
show add printer wizard=no
encrypt passwords=true
passdb backend=tdbsam
unix extensions=no
dns proxy=no
wide links=yes
printing=cups
server string=%h Miniserver
invalid users=root
workgroup = sharefamily
printcap name=cups
#syslog=0
security=user
preferred master=yes
max log size=1000
disable spoolss=Yes
bind interfaces only=yes
client min protocol = SMB3

[home]
hide dotfiles=yes
browseable=yes
writable=yes
admin users=darren
path=/home
write list=darren
hide files=/lost+found/
guest ok=no
create mask=0764
directory mask=0775
comment=Home Directories
hide special files=yes
public=no

[storage]
browseable=yes
inherit owner=yes
inherit permissions=yes
admin users=darren
write list=darren
path=/home/storage
hide files=/lost+found/
guest ok=no
comment=Common storage
read only=yes
hide special files=yes
public=no


update



Another client I tested (an iPhone app) is successfully negotiating SMB2 so it appears to be a limitation of gvfs. I found this related question that suggests it’s limited to SMB1 in order to be able to browse networks by host. Will try the suggested workaround and update accordingly.










share|improve this question





























    0















    I have a Debian server running smbd (Debian 9.3, samba 4.5.12) and an Ubuntu 17.10 client with which I mount samba shares using the gio mount (previously gvfs-mount) commmand: gio mount smb://server/storage



    As both server and client are up to date, I would expect them to negotiate mounts with SMB3, or SMB2 at the least, but if I run smbstatus on the server the mount is using NT1 (which AFAIK is SMB1):



    Samba version 4.5.12-Debian
    PID Username Group Machine Protocol Version Encryption Signing
    ----------------------------------------------------------------------------------------------------------------------------------------
    12164 darren darren 192.168.10.86 (ipv4:192.168.10.86:34052) NT1 - -

    Service pid Machine Connected at Encryption Signing
    ---------------------------------------------------------------------------------------------
    storage 12164 192.168.10.86 Thu Dec 21 22:49:30 2017 GMT - -

    No locked files


    If I add client min protocol = SMB3 to smb.conf, I can confirm that the change takes affect with testparm -v | grep protocol:



    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[home]"
    Processing section "[storage]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE

    Press enter to see a dump of your service definitions

    client ipc max protocol = default
    client ipc min protocol = default
    client max protocol = default
    client min protocol = SMB3
    server max protocol = SMB3
    server min protocol = LANMAN1


    But the output of smbstatus is the same, and the mounts are still using NT1 (have umounted and remounted). How can I force the gio mount command to use a later protocol, and why isn't it working by default?



    Here is my smb.conf:



    [printers]
    guest ok=yes
    comment=Attached printers
    browseable=no
    printable=yes
    path=/var/spool/samba
    use client driver=yes

    [global]
    log file=/var/log/samba/log.all
    guest account=nobody
    load printers=yes
    obey pam restrictions=yes
    socket options=TCP_NODELAY IPTOS_LOWDELAY
    interfaces=br0
    map to guest=Bad User
    show add printer wizard=no
    encrypt passwords=true
    passdb backend=tdbsam
    unix extensions=no
    dns proxy=no
    wide links=yes
    printing=cups
    server string=%h Miniserver
    invalid users=root
    workgroup = sharefamily
    printcap name=cups
    #syslog=0
    security=user
    preferred master=yes
    max log size=1000
    disable spoolss=Yes
    bind interfaces only=yes
    client min protocol = SMB3

    [home]
    hide dotfiles=yes
    browseable=yes
    writable=yes
    admin users=darren
    path=/home
    write list=darren
    hide files=/lost+found/
    guest ok=no
    create mask=0764
    directory mask=0775
    comment=Home Directories
    hide special files=yes
    public=no

    [storage]
    browseable=yes
    inherit owner=yes
    inherit permissions=yes
    admin users=darren
    write list=darren
    path=/home/storage
    hide files=/lost+found/
    guest ok=no
    comment=Common storage
    read only=yes
    hide special files=yes
    public=no


    update



    Another client I tested (an iPhone app) is successfully negotiating SMB2 so it appears to be a limitation of gvfs. I found this related question that suggests it’s limited to SMB1 in order to be able to browse networks by host. Will try the suggested workaround and update accordingly.










    share|improve this question



























      0












      0








      0








      I have a Debian server running smbd (Debian 9.3, samba 4.5.12) and an Ubuntu 17.10 client with which I mount samba shares using the gio mount (previously gvfs-mount) commmand: gio mount smb://server/storage



      As both server and client are up to date, I would expect them to negotiate mounts with SMB3, or SMB2 at the least, but if I run smbstatus on the server the mount is using NT1 (which AFAIK is SMB1):



      Samba version 4.5.12-Debian
      PID Username Group Machine Protocol Version Encryption Signing
      ----------------------------------------------------------------------------------------------------------------------------------------
      12164 darren darren 192.168.10.86 (ipv4:192.168.10.86:34052) NT1 - -

      Service pid Machine Connected at Encryption Signing
      ---------------------------------------------------------------------------------------------
      storage 12164 192.168.10.86 Thu Dec 21 22:49:30 2017 GMT - -

      No locked files


      If I add client min protocol = SMB3 to smb.conf, I can confirm that the change takes affect with testparm -v | grep protocol:



      Load smb config files from /etc/samba/smb.conf
      rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
      Processing section "[printers]"
      Processing section "[home]"
      Processing section "[storage]"
      Loaded services file OK.
      Server role: ROLE_STANDALONE

      Press enter to see a dump of your service definitions

      client ipc max protocol = default
      client ipc min protocol = default
      client max protocol = default
      client min protocol = SMB3
      server max protocol = SMB3
      server min protocol = LANMAN1


      But the output of smbstatus is the same, and the mounts are still using NT1 (have umounted and remounted). How can I force the gio mount command to use a later protocol, and why isn't it working by default?



      Here is my smb.conf:



      [printers]
      guest ok=yes
      comment=Attached printers
      browseable=no
      printable=yes
      path=/var/spool/samba
      use client driver=yes

      [global]
      log file=/var/log/samba/log.all
      guest account=nobody
      load printers=yes
      obey pam restrictions=yes
      socket options=TCP_NODELAY IPTOS_LOWDELAY
      interfaces=br0
      map to guest=Bad User
      show add printer wizard=no
      encrypt passwords=true
      passdb backend=tdbsam
      unix extensions=no
      dns proxy=no
      wide links=yes
      printing=cups
      server string=%h Miniserver
      invalid users=root
      workgroup = sharefamily
      printcap name=cups
      #syslog=0
      security=user
      preferred master=yes
      max log size=1000
      disable spoolss=Yes
      bind interfaces only=yes
      client min protocol = SMB3

      [home]
      hide dotfiles=yes
      browseable=yes
      writable=yes
      admin users=darren
      path=/home
      write list=darren
      hide files=/lost+found/
      guest ok=no
      create mask=0764
      directory mask=0775
      comment=Home Directories
      hide special files=yes
      public=no

      [storage]
      browseable=yes
      inherit owner=yes
      inherit permissions=yes
      admin users=darren
      write list=darren
      path=/home/storage
      hide files=/lost+found/
      guest ok=no
      comment=Common storage
      read only=yes
      hide special files=yes
      public=no


      update



      Another client I tested (an iPhone app) is successfully negotiating SMB2 so it appears to be a limitation of gvfs. I found this related question that suggests it’s limited to SMB1 in order to be able to browse networks by host. Will try the suggested workaround and update accordingly.










      share|improve this question
















      I have a Debian server running smbd (Debian 9.3, samba 4.5.12) and an Ubuntu 17.10 client with which I mount samba shares using the gio mount (previously gvfs-mount) commmand: gio mount smb://server/storage



      As both server and client are up to date, I would expect them to negotiate mounts with SMB3, or SMB2 at the least, but if I run smbstatus on the server the mount is using NT1 (which AFAIK is SMB1):



      Samba version 4.5.12-Debian
      PID Username Group Machine Protocol Version Encryption Signing
      ----------------------------------------------------------------------------------------------------------------------------------------
      12164 darren darren 192.168.10.86 (ipv4:192.168.10.86:34052) NT1 - -

      Service pid Machine Connected at Encryption Signing
      ---------------------------------------------------------------------------------------------
      storage 12164 192.168.10.86 Thu Dec 21 22:49:30 2017 GMT - -

      No locked files


      If I add client min protocol = SMB3 to smb.conf, I can confirm that the change takes affect with testparm -v | grep protocol:



      Load smb config files from /etc/samba/smb.conf
      rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
      Processing section "[printers]"
      Processing section "[home]"
      Processing section "[storage]"
      Loaded services file OK.
      Server role: ROLE_STANDALONE

      Press enter to see a dump of your service definitions

      client ipc max protocol = default
      client ipc min protocol = default
      client max protocol = default
      client min protocol = SMB3
      server max protocol = SMB3
      server min protocol = LANMAN1


      But the output of smbstatus is the same, and the mounts are still using NT1 (have umounted and remounted). How can I force the gio mount command to use a later protocol, and why isn't it working by default?



      Here is my smb.conf:



      [printers]
      guest ok=yes
      comment=Attached printers
      browseable=no
      printable=yes
      path=/var/spool/samba
      use client driver=yes

      [global]
      log file=/var/log/samba/log.all
      guest account=nobody
      load printers=yes
      obey pam restrictions=yes
      socket options=TCP_NODELAY IPTOS_LOWDELAY
      interfaces=br0
      map to guest=Bad User
      show add printer wizard=no
      encrypt passwords=true
      passdb backend=tdbsam
      unix extensions=no
      dns proxy=no
      wide links=yes
      printing=cups
      server string=%h Miniserver
      invalid users=root
      workgroup = sharefamily
      printcap name=cups
      #syslog=0
      security=user
      preferred master=yes
      max log size=1000
      disable spoolss=Yes
      bind interfaces only=yes
      client min protocol = SMB3

      [home]
      hide dotfiles=yes
      browseable=yes
      writable=yes
      admin users=darren
      path=/home
      write list=darren
      hide files=/lost+found/
      guest ok=no
      create mask=0764
      directory mask=0775
      comment=Home Directories
      hide special files=yes
      public=no

      [storage]
      browseable=yes
      inherit owner=yes
      inherit permissions=yes
      admin users=darren
      write list=darren
      path=/home/storage
      hide files=/lost+found/
      guest ok=no
      comment=Common storage
      read only=yes
      hide special files=yes
      public=no


      update



      Another client I tested (an iPhone app) is successfully negotiating SMB2 so it appears to be a limitation of gvfs. I found this related question that suggests it’s limited to SMB1 in order to be able to browse networks by host. Will try the suggested workaround and update accordingly.







      ubuntu debian samba






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 22 '17 at 0:27







      Darren

















      asked Dec 21 '17 at 23:05









      DarrenDarren

      2,0201123




      2,0201123






















          1 Answer
          1






          active

          oldest

          votes


















          0














          min protocol = SMB2



          NOT



          client min protocol = SMB3



          Got an extra word in there.






          share|improve this answer



















          • 1





            I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

            – Darren
            Dec 22 '17 at 0:09











          • Actually, min protocol is a synonym for server min protocol.

            – Darren
            Dec 22 '17 at 0:13











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1279243%2fcant-force-samba-to-use-smb2-or-smb3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          min protocol = SMB2



          NOT



          client min protocol = SMB3



          Got an extra word in there.






          share|improve this answer



















          • 1





            I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

            – Darren
            Dec 22 '17 at 0:09











          • Actually, min protocol is a synonym for server min protocol.

            – Darren
            Dec 22 '17 at 0:13
















          0














          min protocol = SMB2



          NOT



          client min protocol = SMB3



          Got an extra word in there.






          share|improve this answer



















          • 1





            I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

            – Darren
            Dec 22 '17 at 0:09











          • Actually, min protocol is a synonym for server min protocol.

            – Darren
            Dec 22 '17 at 0:13














          0












          0








          0







          min protocol = SMB2



          NOT



          client min protocol = SMB3



          Got an extra word in there.






          share|improve this answer













          min protocol = SMB2



          NOT



          client min protocol = SMB3



          Got an extra word in there.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 22 '17 at 0:07









          cybernardcybernard

          10k31525




          10k31525








          • 1





            I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

            – Darren
            Dec 22 '17 at 0:09











          • Actually, min protocol is a synonym for server min protocol.

            – Darren
            Dec 22 '17 at 0:13














          • 1





            I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

            – Darren
            Dec 22 '17 at 0:09











          • Actually, min protocol is a synonym for server min protocol.

            – Darren
            Dec 22 '17 at 0:13








          1




          1





          I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

          – Darren
          Dec 22 '17 at 0:09





          I’ve found documentation suggesting either way (I wonder if it’s version specific), but will try it like you suggest.

          – Darren
          Dec 22 '17 at 0:09













          Actually, min protocol is a synonym for server min protocol.

          – Darren
          Dec 22 '17 at 0:13





          Actually, min protocol is a synonym for server min protocol.

          – Darren
          Dec 22 '17 at 0:13


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1279243%2fcant-force-samba-to-use-smb2-or-smb3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mouse cursor on multiple screens with different PPI

          Agildo Ribeiro

          Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”