From owner-freebsd-questions@freebsd.org Thu Sep 28 20:48:25 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73523E08FF8 for ; Thu, 28 Sep 2017 20:48:25 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-yw0-x22c.google.com (mail-yw0-x22c.google.com [IPv6:2607:f8b0:4002:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 270DB6DC44 for ; Thu, 28 Sep 2017 20:48:25 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-yw0-x22c.google.com with SMTP id w9so1899172ywi.11 for ; Thu, 28 Sep 2017 13:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+EDRrX1mF+pi8f5p0o6Xc33geh5M5oc5RA3njIuJhkU=; b=E/1C5PTqe8s3TmgVATaa2IJasOLKXTUT4WrTgC6X0GseLemRhaFSJRpHmteD8AdI4w nviAUivJTgiFohWWzYAnI4m113tB9ysIJ7luTO3SG55lTIRTycWZxnSxrSBtXva/yPQI Sp7ixEMsqlAWvJ87Uhi3rBLDFU/YuR6irseGg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+EDRrX1mF+pi8f5p0o6Xc33geh5M5oc5RA3njIuJhkU=; b=grR1p7sGAw78UOKo9X4goPw0b5SRfp649MgXZ/oFakHZcZyfj0oy5I/fvIy83yMcQa a/RZtFPk1QvpywjXBt38TDdLuI8ckx48JyChmV14GzYQGkrJ4ePtRG8tIkP/J5iuO/b9 MT6KL8wpRsgBbepIZp7Pr1yQ/73Ea+hQfXwUF23xKorOOngw8bZT1G3uRwlZ55KcmW4P n4CZ+IBJ4FhOeR/hfkzGnpyG5DcJ/3OjtBn0bfGSPWt0jTRPm+3tpqBruu12+ltdjE62 A0ZCb9RHiqzzdENKVAHSeN/NN5zIOPunwfnbyhQBA5v34QmOYsCLMYlhXHN6v4ZMHAhh PKsA== X-Gm-Message-State: AHPjjUgTcyLJbDDMF6Q0YsPAR8sZyNpDQmWw5XilZUrWrfbPw+W8vvOa z52a+1k2wR8tWUtsBoxppne3I1gfqISOGaHXON/R6jVP X-Google-Smtp-Source: AOwi7QCcCe02qg3auxz/M9AbeMwqj4e3Y8WRICWY7r//G04cmoHwmP4R3KSCKLn3cZVdqPskpq332xAn2pVRhaCaQFU= X-Received: by 10.129.109.151 with SMTP id i145mr4605218ywc.82.1506631704128; Thu, 28 Sep 2017 13:48:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.170.193 with HTTP; Thu, 28 Sep 2017 13:48:23 -0700 (PDT) In-Reply-To: References: <20170927100635.7b56f8fd@Papi.lobos> From: Mario Lobo Date: Thu, 28 Sep 2017 17:48:23 -0300 Message-ID: Subject: Re: mount_smbfs question (re-post) To: Ronald Klop Cc: Erwan Legrand , freebsd-fs@freebsd.org, FreeBSD questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 20:48:25 -0000 2017-09-28 17:20 GMT-03:00 Ronald Klop : > On Thu, 28 Sep 2017 19:08:04 +0200, Erwan Legrand < > freebsd@erwanlegrand.com> wrote: > > On Thu, Sep 28, 2017 at 4:16 PM, Mario Lobo wrote: >> >>> 2017-09-27 11:20 GMT-03:00 Erwan Legrand : >>> >>>> On Wed, Sep 27, 2017 at 3:06 PM, Mario Lobo >>>> wrote: >>>> > Since my environment is tottaly surrounded with shares that no longer >>>> > accept SMBv1 (Windows, Linux AND FreeBSD servers), so basically in the >>>> > end, what I'm really looking for is a confirmation that I'll just have >>>> > to dump all Freebsd samba clients because the OS can't deal with SMBv2 >>>> > or above. >>>> >>>> Perhaps have a look at implementations of SMB on top of FUSE? >>>> >>>> http://portsmon.freebsd.org/portoverview.py?category=sysutil >>>> s&portname=fusefs-smbnetfs >>>> >>> >>> I did. Same problem. >>> smbnetfs only works with SMBv1 >>> >>> >> It is based on libsmbclient, thus it should support SMB2 if smb.conf >> allows it. According to the following thread, the client protocol is >> resticted to SMB1 by default: >> >> https://lists.samba.org/archive/samba-technical/2016-Novembe >> r/thread.html#116999 >> >> This might be fixed by setting "client max protocol = SMB2" in >> smb.conf. ($HOME/.smb/smb.conf in this case?) >> > > I'd suggest setting "client min protocol". > ^^^ > > Regards, > Ronald. > > > _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >> > I just tested it! 2 shares. 1 with SMBv1 and 1 with client min protocol=SMBv2 They are both SAMBA with FREEBSD. The first I can read/write anywhere in it The second I can't even see whats in it. These are the msgs from running smbnetfs -d /shares when accessing the SMBv1 share (OK): unique: 1178, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 unique: 1178, success, outsize: 26 unique: 1179, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1179, success, outsize: 112 unique: 1180, opcode: LOOKUP (1), nodeid: 12, insize: 51, pid: 36429 LOOKUP /NEWSITE/.directory getattr /NEWSITE/.directory unique: 1180, error: -2 (No such file or directory), outsize: 16 unique: 1181, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 unique: 1181, success, outsize: 26 unique: 1182, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1182, success, outsize: 112 unique: 1183, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 unique: 1183, success, outsize: 26 unique: 1184, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1184, success, outsize: 112 unique: 1185, opcode: LOOKUP (1), nodeid: 12, insize: 51, pid: 36429 LOOKUP /NEWSITE/.directory getattr /NEWSITE/.directory unique: 1185, error: -2 (No such file or directory), outsize: 16 unique: 1186, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1186, success, outsize: 112 unique: 1187, opcode: GETATTR (3), nodeid: 3, insize: 40, pid: 36429 getattr /SEAWAY unique: 1187, success, outsize: 112 unique: 1188, opcode: GETATTR (3), nodeid: 11, insize: 40, pid: 36429 getattr /SEAWAY/NEWSITE unique: 1188, success, outsize: 112 unique: 1189, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 unique: 1189, success, outsize: 26 unique: 1190, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 unique: 1190, success, outsize: 26 unique: 1191, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1191, success, outsize: 112 unique: 1192, opcode: GETATTR (3), nodeid: 12, insize: 40, pid: 36429 getattr /NEWSITE unique: 1192, success, outsize: 112 unique: 1193, opcode: GETATTR (3), nodeid: 3, insize: 40, pid: 36429 getattr /SEAWAY unique: 1193, success, outsize: 112 unique: 1194, opcode: GETATTR (3), nodeid: 12, insize: 40, pid: 36429 getattr /NEWSITE unique: 1194, success, outsize: 112 unique: 1195, opcode: GETATTR (3), nodeid: 11, insize: 40, pid: 36429 getattr /SEAWAY/NEWSITE unique: 1195, success, outsize: 112 unique: 1196, opcode: READLINK (5), nodeid: 11, insize: 40, pid: 36429 readlink /SEAWAY/NEWSITE 1025 when accessing the SMBv2 share (BAD): readlink /SEAWAY/SITE-DESIGN 1025 unique: 1157, success, outsize: 30 unique: 1158, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36446 getattr / unique: 1158, success, outsize: 112 unique: 1159, opcode: OPENDIR (27), nodeid: 18, insize: 48, pid: 36446 opendir flags: 0x0 /SITE-DESIGN unique: 1159, error: -5 (Input/output error), outsize: 16 2017-09-28 17:40:21.948 srv(39637)->smb_conn_srv_opendir: errno=22, Invalid argument unique: 1160, opcode: GETATTR (3), nodeid: 17, insize: 40, pid: 36429 getattr /SEAWAY/SITE-DESIGN unique: 1160, success, outsize: 112 unique: 1161, opcode: READLINK (5), nodeid: 17, insize: 40, pid: 36429 readlink /SEAWAY/SITE-DESIGN 1025 unique: 1161, success, outsize: 30 unique: 1162, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1162, success, outsize: 112 unique: 1163, opcode: GETATTR (3), nodeid: 18, insize: 40, pid: 36429 getattr /SITE-DESIGN unique: 1163, success, outsize: 112 unique: 1164, opcode: READLINK (5), nodeid: 17, insize: 40, pid: 36429 readlink /SEAWAY/SITE-DESIGN 1025 unique: 1164, success, outsize: 30 unique: 1165, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 36429 getattr / unique: 1165, success, outsize: 112 unique: 1166, opcode: GETATTR (3), nodeid: 17, insize: 40, pid: 36429 getattr /SEAWAY/SITE-DESIGN unique: 1166, success, outsize: 112 Unless I'm missing some tuning option in smbnetfs for SMBv2 and above, It doesen't work! Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)