Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2024 10:27:03 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        infoomatic <infoomatic@gmx.at>
Cc:        questions@freebsd.org
Subject:   Re: mount SMB
Message-ID:  <trinity-ebe100d9-2909-49af-bdfa-d509e0835b2b-1725438423547@3c-app-mailcom-bs02>
In-Reply-To: <0a30aafe-659c-43db-855d-01de824e8f9f@gmx.at>
References:  <trinity-2273f71b-07af-48f6-b8e8-b98e289db6f2-1724927699916@3c-app-mailcom-bs06> <20240829220603.c2c6fba0.freebsd@edvax.de> <0a30aafe-659c-43db-855d-01de824e8f9f@gmx.at>

index | next in thread | previous in thread | raw e-mail



> Sent: Monday, September 02, 2024 at 1:18 PM
> From: "infoomatic" <infoomatic@gmx.at>
> 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=YOUR_WORKGROUP_NAME
> >
> > 	[SERVERNAME]
> > 	addr=123.456.789.10
> >
> > 	[SERVERNAME:USERNAME]
> > 	password=TOPSECRET
> >
> > 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, ...
> >
>
>


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-ebe100d9-2909-49af-bdfa-d509e0835b2b-1725438423547>