From owner-freebsd-fs@freebsd.org Thu Sep 28 20:48:25 2017 Return-Path: Delivered-To: freebsd-fs@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 68573E08FF4 for ; Thu, 28 Sep 2017 20:48:25 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (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 1FB296DC43 for ; Thu, 28 Sep 2017 20:48:25 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-yw0-x22f.google.com with SMTP id u205so1904713ywa.5 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=Bwd/j6gAReW2C+BkoNDhoE6wfePinK2/F0wHiiG79ElBDO9wZrHSJGASL2CHLuSREV fqGSIIw89NF4bQhPGCo59791o5RZ0zha1oAGIW9NHIyMs04cVtRqTcmpyrPmNV1OSyun U9KE1ov33jH2jIRhUSivieOv2KZ8qc8wCDXgvWtuQZlp1eGCpe4g1hd+XY/ALj5uyGx4 5KLjCtJakBzBoyqH8aHq/7EEYmKd3jycERkLm9s73qZzdcqJQ3U1iW1Ok5DoZEIzkRTc HkzMUEAqe7wHOr0n9RqCXDb8fwFhbM+iqq/tTfIV+gwUTa1xlb8xXHNOzgNS9knNp0qv iO5A== X-Gm-Message-State: AHPjjUhwzeKbmdJrTuydcxuDQMXhIoJr+VYi1EVkwgsk3zRX6eGOANMy zet/2fCcfaEgPe5hC3c+vsQ3VN2sCbmiEKNl/MxhaQ== 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-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems 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)