Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2023 08:47:47 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        paul beard <paulbeard@gmail.com>, FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: SMB =?UTF-8?Q?authentication=E2=80=A6flakiness=3F?=
Message-ID:  <e50a029b5cbc9e8bf9e6d2e92e5872940d233dd5.camel@gromit.dlib.vt.edu>
In-Reply-To: <CAMtcK2q0kefQ8Koa%2BoCetqfLauZaRLTQn2r=VNgwBAdb0nrTNA@mail.gmail.com>
References:   <CAMtcK2q0kefQ8Koa%2BoCetqfLauZaRLTQn2r=VNgwBAdb0nrTNA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-74VaJ/RozBh2vy91RBEG
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2023-07-10 at 18:30 -0700, paul beard wrote:
> having some trouble mounting an smb volume hosted by a wireless base
> station running linux/busybox.=20
>=20
> smbutil works, mount_smbfs doesn't. password is in .nsmbrc, seems to
> be readable by smbutil.=C2=A0
>=20
> smbutil view //www@omphalos
> Share =C2=A0 =C2=A0 =C2=A0 =C2=A0Type =C2=A0 =C2=A0 =C2=A0 Comment
> -------------------------------
> jffs =C2=A0 =C2=A0 =C2=A0 =C2=A0 disk =C2=A0 =C2=A0 =C2=A0 JFFS
> storage =C2=A0 =C2=A0 =C2=A0disk =C2=A0 =C2=A0 =C2=A0 STORAGE
> EFI =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0disk =C2=A0 =C2=A0 =C2=A0 EFI
> IPC$ =C2=A0 =C2=A0 =C2=A0 =C2=A0 pipe =C2=A0 =C2=A0 =C2=A0 IPC Service (F=
reshTomato Samba Server)
>=20
> mount_smbfs -I omphalos -N //tmp/mnt/storage /mnt/storage
> mount_smbfs: unable to open connection: syserr =3D Authentication error
>=20
> tail -1 /etc/fstab=20
> //omphalos/STORAGE =C2=A0 =C2=A0 =C2=A0/mnt/storage =C2=A0 =C2=A0smbfs =
=C2=A0 rw,noauto, -N,-
> I192.168.0.1 00
>=20
> This all used to work, but a couple of firmware upgrades have taken
> place. This was working yesterday after the latest update but now is
> failing and I am not seeing what's wrong with it.=C2=A0
>=20
> The server offers Samba protocol version=C2=A0v1, v2 or mixed v1/v2. v1
> doesn't work at all, returns=C2=A0
> mount_smbfs: unable to open connection: syserr =3D RPC struct is bad
>=20
>=20
> The others will allow smbutil to work but not mount_smbfs.
> Logging=C2=A0isn't telling me much on the server side. I could mount the
> disk on macOS but that's not working now either. smbutil still works
> there but not mount_smbfs.


When my OpenELEC server stopped supporting SMB1 by default I decided to
bite the bullet and abandon mount_smbfs, which does not support
anything higher than SMB1. =C2=A0(See the STANDARDS section of the
mount_smbfs(8) manual page.)

In my case, I switched to the sysutils/fusefs-smbnetfs port. =C2=A0It uses
Samba4 under the hood, so supports both SMB2 and SMB3, making it more
compatible with other OSes (like macOS). =C2=A0I found fusefs-smbnetfs a
little bit of a pain to set up, but very reliable. =C2=A0Its main advantage=
,
for me, is supporting modern SMB standards.

Cheers,

Paul.

--=-74VaJ/RozBh2vy91RBEG
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div>On Mon, 2023-07-10 at 18:30 -0700, paul beard=
 wrote:</div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-l=
eft:2px #729fcf solid;padding-left:1ex"><div dir=3D"ltr">having some troubl=
e mounting an smb volume hosted by a wireless base station running linux/bu=
sybox. <br><br>smbutil works, mount_smbfs doesn't. password is in .nsmbrc, =
seems to be readable by smbutil.&nbsp;<br><br><font face=3D"monospace">smbu=
til view //www@omphalos<br>Share &nbsp; &nbsp; &nbsp; &nbsp;Type &nbsp; &nb=
sp; &nbsp; Comment<br>-------------------------------<br>jffs &nbsp; &nbsp;=
 &nbsp; &nbsp; disk &nbsp; &nbsp; &nbsp; JFFS<br>storage &nbsp; &nbsp; &nbs=
p;disk &nbsp; &nbsp; &nbsp; STORAGE<br>EFI &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p;disk &nbsp; &nbsp; &nbsp; EFI<br>IPC$ &nbsp; &nbsp; &nbsp; &nbsp; pipe &n=
bsp; &nbsp; &nbsp; IPC Service (FreshTomato Samba Server)</font><br><br><fo=
nt face=3D"monospace">mount_smbfs -I omphalos -N //tmp/mnt/storage /mnt/sto=
rage<br>mount_smbfs: unable to open connection: syserr =3D Authentication e=
rror</font><div><br></div><div>tail -1 /etc/fstab <br>//omphalos/STORAGE &n=
bsp; &nbsp; &nbsp;/mnt/storage &nbsp; &nbsp;smbfs &nbsp; rw,noauto, -N,-I19=
2.168.0.1 00<br><br></div>This all used to work, but a couple of firmware u=
pgrades have taken place. This was working yesterday after the latest updat=
e but now is failing and I am not seeing what's wrong with it.&nbsp;<div><b=
r></div><div>The server offers Samba protocol version&nbsp;v1, v2 or mixed =
v1/v2. v1 doesn't work at all, returns&nbsp;</div><font face=3D"monospace">=
mount_smbfs: unable to open connection: syserr =3D RPC struct is bad<br></f=
ont><div><br></div><div>The others will allow smbutil to work but not mount=
_smbfs. Logging&nbsp;isn't telling me much on the server side. I could moun=
t the disk on macOS but that's not working now either. smbutil still works =
there but not mount_smbfs.</div></div></blockquote><div><br></div><div><br>=
</div><div>When my OpenELEC server stopped supporting SMB1 by default I dec=
ided to bite the bullet and abandon mount_smbfs, which does not support any=
thing higher than SMB1. &nbsp;(See the STANDARDS section of the mount_smbfs=
(8) manual page.)</div><div><br></div><div>In my case, I switched to the sy=
sutils/fusefs-smbnetfs port. &nbsp;It uses Samba4 under the hood, so suppor=
ts both SMB2 and SMB3, making it more compatible with other OSes (like macO=
S). &nbsp;I found fusefs-smbnetfs a little bit of a pain to set up, but ver=
y reliable. &nbsp;Its main advantage, for me, is supporting modern SMB stan=
dards.</div><div><br></div><div>Cheers,</div><div><br></div><div>Paul.</div=
><div><span></span></div></body></html>

--=-74VaJ/RozBh2vy91RBEG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e50a029b5cbc9e8bf9e6d2e92e5872940d233dd5.camel>