Cifs: SMB1-share doesn't mount

Hello

I’m attempting to mount museum-era NAS-share, which seems to need SMB1, and mounting doesn’t work.
What to try/check next and what could be the problem?

First I tried:

$ sudo mount -t cifs //192.168.10.2/VerkkoRAID /mnt/VerkkoRAID -o vers=1.0,username=mikko

and, after getting passwords for sudo and share, got an error:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

$ sudo dmesg got this kind of results:

[13976.676096] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers                                               
[13976.676107] CIFS: Attempting to mount \\192.168.10.2\VerkkoRAID
[13976.698820] CIFS: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[13976.698881] CIFS: VFS: \\192.168.10.2 Send error in SessSetup = -13
[13976.699037] CIFS: VFS: cifs_mount failed w/return code = -13

Then, I attempted this:

$ sudo mount -t cifs //192.168.10.2/VerkkoRAID /mnt/VerkkoRAID -o vers=1.0,username=mikko,password=secret

and got this:

mount error(20): Not a directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

$ sudo dmesg got something like this:

[14437.773535] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers                                               
[14437.773544] CIFS: Attempting to mount \\192.168.10.2\VerkkoRAID
[14437.835930] CIFS: VFS: bogus file nlink value 0

:thinking:

SMB1 has some serious security issues and last i checked it was disabled by default. I believe you can re-enable it the config file.

There has been workarounds - I have seen to many issues lately with old NAS e.g. Zyxel3xx.

You can try adding to /etc/smb.conf on your workstation

[global]
   client min protocol = NT1

Remove the
vers=1.0,
and let it auto negotiate the protocol.

Made it work again here

Removing the vers=1.0 in Ubuntu Server 22.04, kernel 5.15.0-58-generic:

mount error: Server abruptly closed the connection.
This can happen if the server does not support the SMB version you are trying to use.
The default SMB version recently changed from SMB1 to SMB2.1 and above. Try mounting with vers=1.0.
mount error(112): Host is down