Re: SMB authentication…flakiness?

From: Paul Mather <paul_at_gromit.dlib.vt.edu>
Date: Tue, 11 Jul 2023 12:47:47 UTC
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. 
> 
> smbutil works, mount_smbfs doesn't. password is in .nsmbrc, seems to
> be readable by smbutil. 
> 
> smbutil view //www@omphalos
> Share        Type       Comment
> -------------------------------
> jffs         disk       JFFS
> storage      disk       STORAGE
> EFI          disk       EFI
> IPC$         pipe       IPC Service (FreshTomato Samba Server)
> 
> mount_smbfs -I omphalos -N //tmp/mnt/storage /mnt/storage
> mount_smbfs: unable to open connection: syserr = Authentication error
> 
> tail -1 /etc/fstab 
> //omphalos/STORAGE      /mnt/storage    smbfs   rw,noauto, -N,-
> I192.168.0.1 00
> 
> 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. 
> 
> The server offers Samba protocol version v1, v2 or mixed v1/v2. v1
> doesn't work at all, returns 
> mount_smbfs: unable to open connection: syserr = RPC struct is bad
> 
> 
> The others will allow smbutil to work but not mount_smbfs.
> Logging isn'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.  (See the STANDARDS section of the
mount_smbfs(8) manual page.)

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

Cheers,

Paul.