From nobody Wed Sep 04 08:27:03 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WzFwC03l2z5TQB7 for ; Wed, 04 Sep 2024 08:27:07 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzFw970nSz4Q9l for ; Wed, 4 Sep 2024 08:27:05 +0000 (UTC) (envelope-from nvass@gmx.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.com header.s=s31663417 header.b=swH965wa; dmarc=pass (policy=quarantine) header.from=gmx.com; spf=pass (mx1.freebsd.org: domain of nvass@gmx.com designates 212.227.15.18 as permitted sender) smtp.mailfrom=nvass@gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1725438423; x=1726043223; i=nvass@gmx.com; bh=5LpgXb4hpYVTtUwAjlDet92BoPV5ytOzX8+luggc3/c=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=swH965walEf8UzS8MOoeN7VbIROPghi5OTBSN50oGud7wH3yYRSTjmAAl/WxZ2cl 6LqKiyEA4OyD0KcsEBiOUFGEllR/xYBUVzUHSQiGAb0AyqDNez2LL+7fBGeNSwDZF d1f3tXnzfIbuOfgecVi/FxU+b4OiTakcQUhWDf/s6/nTQUIPEyEhCRRYYMK95b/lS hdf1pzKYxsMhJ50e0G+veS7VGZpUq4pvUw+bIa9HMyMNGszAH9n3AFqqfQnWTKoR/ ZhHVETNzQ9lBuUmwLPaiOt9mEXGVBq0hSZL1a2Pjqr+E6QRVxpYHyUwWwYhPenBmw kxS1XfcEPnM7/TsETQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [5.203.226.31] ([5.203.226.31]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Wed, 4 Sep 2024 10:27:03 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Message-ID: From: Nikos Vassiliadis To: infoomatic Cc: questions@freebsd.org Subject: Re: mount SMB Content-Type: text/plain; charset=UTF-8 Date: Wed, 4 Sep 2024 10:27:03 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <0a30aafe-659c-43db-855d-01de824e8f9f@gmx.at> References: <20240829220603.c2c6fba0.freebsd@edvax.de> <0a30aafe-659c-43db-855d-01de824e8f9f@gmx.at> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:vulK/vDRq1xc8R+hnDoYb+yQOnM0ALUIZRsV1UjVGaGJhrZfum5XV4IZpZwsRV5w+OdNp xBwvucJ0gm3/1hitd07GwKnDNOW5OXebEFjN9VWic1hL1DjTATlyXG5Yuf+0ofWKRG19gHIifsGE RXcpZeDb5e2vPTjBNvvr/IxdrPeB9cMQvX02LCosiSZaaCL+Pk0zpJ6IwhIoHMPcg1ona+86vwNO e6Pq8QURcHZxEjnHkz4mNfJFnRnXHyWzCQE6Xw77aN30UWpC02kU5Qtu+mQQi7A5DSIgK0K1plLa LM= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:S9GdHr8G2hA=;SQ/sBvVlbeJbIqb90l4tXWGlby8 j7UtDdQNhLoYKAhUT+WG2JRLKeYk+KYxZ0Tp7jOeBEEl3jJNqq6SL/w+puDMgBYSFMBqTqhEB aL2x0UJFAEmR/bj+hSklY8V+cviH/E6moiVGVkRFcadGUpF/Sm6TeCZgrPrC2nmoQgSFmN37z 3w3X8KGbcl26uspgWc0F72OwNz2a0+KMar5jHk6UPiMEcUMN8WXuya4hnySokVuvm0Wbf3bY4 m8x9gdBrVy+pq3swkyKQ2QUhV0KHCO+Y4/3inX7zd5DqIDXcHeLoT8N931IRlHCmrOBT4sDBy BaDcBawImtaZ4XL2SWcOSARLg7yVzH+4qCCohzL2ZfiHNH/F0YOMVN/uv5yOUTID1kvR2N7EO kEqkCDhpGudCHmRYV5+LycMLSPboWrz3t6BK5nkHk+OuVU34jki3LawuXTuC6HVX3RKalLa5h 6LCgBEn8weAUw5d2R552lRDcrBpAas83kw/45XkBN0Vykt++I+3TfqwB239A3vXmhqsZqdSMC yy7pE24vt+b18Y3Y/kkz4vcvicxffjyc/cpHux+pG+ZKZqQJhxeCiiC2XSETcQIGSO/3AGG38 88aJxaijUoBA+EnF2bJeH101A7sCepjPqqJEhTHkcgfhPkGyvSC8geG+pST0/5RksifYcL4dj GBlUzT1rTaqjsKorHjJLx9DUg/2+1G1qhbqyGLb9+Q== Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.40 / 15.00]; DWL_DNSWL_LOW(-1.00)[gmx.com:dkim]; NEURAL_HAM_MEDIUM(-0.96)[-0.957]; NEURAL_HAM_LONG(-0.92)[-0.922]; NEURAL_HAM_SHORT(-0.92)[-0.916]; DMARC_POLICY_ALLOW(-0.50)[gmx.com,quarantine]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[gmx.com:s=s31663417]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net]; RWL_MAILSPIKE_GOOD(-0.10)[212.227.15.18:from]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_TO(0.00)[gmx.at]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmx.com:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[gmx.com]; FREEMAIL_ENVFROM(0.00)[gmx.com] X-Rspamd-Queue-Id: 4WzFw970nSz4Q9l > Sent: Monday, September 02, 2024 at 1:18 PM > From: "infoomatic" > To: questions@freebsd.org > Subject: Re: mount SMB > > beware: mount_smbfs only supports protocol version 1, which is hardly > used any more. Modern systems have been using versions 3.11+ for a long > time now. I have been hoping for an upgrade for a long time already Hi, Exactly. I didn't mention it but that is problem. I haven't even tried to use the native solution as it's a bad idea and I am pretty sure it won't work anymore... It seems that smbnetfs is the only way to mount a contemporary SMB share. > > > On 29.08.24 22:06, Polytropon wrote: > > On Thu, 29 Aug 2024 12:34:59 +0200, Nikos Vassiliadis wrote: > >> I am looking for a way to mount SMB filesystems. I am using > >> smbnetfs successfully but I am not comfortable with the idea > >> of having the password of the share in a file. > > > > Would it be acceptable to have it in a file beneath /etc only > > being rw/--/-- and belonging to root:wheel? In that case, why > > not use FreeBSD's native mount_smbfs setup? > > > > In /etc/nsmb.conf: > > > > [default] > > workgroup=3DYOUR_WORKGROUP_NAME > > > > [SERVERNAME] > > addr=3D123.456.789.10 > > > > [SERVERNAME:USERNAME] > > password=3DTOPSECRET > > > > where SERVERNAME and USERNAME correspond to the server's name > > and the username you use to access the share (with the proper > > password). If no password is provided, mount will ask for it. > > > > See "man nsmb.conf" for details. > > > > Integrate it in /etc/fstab: > > > > //USERNAME@SERVERNAME/SHARENAME /smb/share smbfs rw,noauto 0 0 > > > > Add "drive letters" ("//blah.../c$") if absolutely needed. > > Leave out "noauto" if you want the system to mount the share > > at startup. If not, mount it like any normal filesystem > > interactively: > > > > # mount /smb/share > > > > Please note that this is "old man's advice" and may not apply > > anymore, because now you need a smartphone app and a paid > > subscription in order to mount SMB shares... ;-) > > > > There is also a FreeBSD Handbook chapter about SMB / CIFS and > > its integration. There's also a FAQ section. > > > > > > > >> Keep in mind that I am after a terminal-only solution and not > >> after a X11 file browser. > > > > The provided solution might work. Good luck! > > > > > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > > > >