From nobody Mon Sep 02 10:18:08 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 4Wy4TL3fG2z5PQPr for ; Mon, 02 Sep 2024 10:18:14 +0000 (UTC) (envelope-from infoomatic@gmx.at) 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 4Wy4TK3Vxxz4MXG for ; Mon, 2 Sep 2024 10:18:13 +0000 (UTC) (envelope-from infoomatic@gmx.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.at header.s=s31663417 header.b=dsMyl3pi; dmarc=pass (policy=quarantine) header.from=gmx.at; spf=pass (mx1.freebsd.org: domain of infoomatic@gmx.at designates 212.227.15.18 as permitted sender) smtp.mailfrom=infoomatic@gmx.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1725272289; x=1725877089; i=infoomatic@gmx.at; bh=+l2CwJmCj6jJqoo5LMyZ+mYaZpb7AXo5IIUMy6swY8Q=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=dsMyl3pi2/OJtboalNYUZTx0O1bM58ThQCK4M88Efgj4aI9VKwdgxNcNsaFh1gCd IiXjxGWUWEtfD9sxNejcOrXx2EQaxBtIxrnXbUNSoTZBYfqpMlpTzYQxXqHiopUvd cuwysX67LGnF/2hkl9PPfzuRXVImfOxSZn/HyEtLlbtvC8GQzttOCw/ZnwzkwO8Km SI1PnPoGnuedssMOzWRzQQZxIDSJI1Tou/zQzislYmR4jOpHTZgpOLWmS7iM8ABw9 lx2gxhWT3mRfwZUfmvLzWBLPBgpnLemnyEbE9WHFUvx4N2QlbglcEIjBrT4bzG3Be fnRCwIUCGt/yA39jMw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.0.1.209] ([178.114.187.142]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUXpK-1scMwD19oe-00S5QU for ; Mon, 02 Sep 2024 12:18:09 +0200 Message-ID: <0a30aafe-659c-43db-855d-01de824e8f9f@gmx.at> Date: Mon, 2 Sep 2024 12:18:08 +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 User-Agent: Mozilla Thunderbird Subject: Re: mount SMB To: questions@freebsd.org References: <20240829220603.c2c6fba0.freebsd@edvax.de> Content-Language: en-US From: infoomatic In-Reply-To: <20240829220603.c2c6fba0.freebsd@edvax.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xpknuwhcP2MyHXH8OjPBpQq2O5+H9VZ83wNMvqbdni4HpmNZqzU x/2bQG1nuCP92bMV0FT6R7kI54jInJTDuH/iLT/AtZQfvKLn0ruhiNQm50iObOWCpPeKaxr TdTpk1UYYgfaFPuEVUms553248UTcW58+A/2PdQbevvLs0b6TAj5tNjQKgQJmWFoPcyBNFN Zo5yKh9rdcJ9d7KWO10Cg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:oXOSF54qugg=;3/1+IaYuhq8hHCZU3lNH8CXlxF1 OIMrzr/TBN3nSDBJMe5MNd0m6+5QHuZLyoIaVDYm9RQJv1ONlAfibx8Q9qS3C5tAruXqQWPZq YAM3NwxyI2NveP6qjPGFhSkGECRBDRSSpX2FUbT9rdLGuWiAgBA5eaDl8Agxxdrh1QPXefBFu HBtMuHh9IFv09F7ouKT8ZsuN3RL9rCICaVVuufhaqoOD/zGOZzGtT9vhP1asuVtaU5eeOZGTl 4n+HEAQ4svrkflmpGT+/sQy3+xpgp/fVDnEbfUekC5vRG72gzu+qR4whveoDBRq2Is2+VpAaz CSzHz/VBiqQSytHt5KF8QirYNPhUMRl9oSv6m/Y7T7oFh7JqkPebdnWAlCY39mkIsq552F/QK BZHOyGq4/vEOLfWulFZ3U6yuq3VpVGupFTcS2lGv4xikniu+iUjyCTjD06sSHRSqQYhUJ3/sL NL3l5fJc+cMWt6gdMzXBtry0OsgfLgxd7CR148tWxBNsP4zmK4GbQJlOVT7VxjMNZSUAiRqE+ rxHj8bY+5xEhzOley62T4D1eRfl19NJSJL9s4rFfdjL3Gaa6E6SIdmBI6cCZWFP+tRRo420U6 4a6eV4qwtIKcV/HobdbpuLvh25S1lsWB95QqW7BU98Hr5aRBvzOAoC9ocumR1xp2r30zfmZ4M cfnBiwRdtXuPo2pc3gjChTeSztUeiQeCR0gaQCoKXZCvWMLuchAqWnUEF0lHi3OP3SBKHQtuS CtNmJdaTmIRlIYUXqB+yku7FMMEYozQLHKCTy4CdLZfn2e/SApbQYiC3UCH6sxbwI9Qjpv8Ga M5h/9SQ/11Dpo7A/6qP+cKKg== X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.07 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_LONG(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,quarantine]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net]; R_DKIM_ALLOW(-0.20)[gmx.at:s=s31663417]; MIME_GOOD(-0.10)[text/plain]; 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)[]; NEURAL_SPAM_SHORT(0.01)[0.012]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmx.at:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.at] X-Rspamd-Queue-Id: 4Wy4TK3Vxxz4MXG 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 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, ... >