6.2.0-31 SMB1 NAS won't mount

Bug #2033386 reported by Alex Desh
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I can't connect to my old NAS SMB vers=1.0 using cifs via fstab, everything works in kernel 6.2.0-26 and I have to roll back.

mount.cifs(8) -22 invalid argument

Tags: cifs smb1 vers
Revision history for this message
Alex Desh (tutralex) wrote :

fstab:
#NAS
//192.168.x.xxx/sdcard /media/xxx/Z cifs rw,user,noauto,noperm,noserverino,nosuid,nodev,nofail,noatime,sec=ntlmssp,vers=1.0,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=xxxx,servern=NAS,username=NAS,password=xxxxxx,x-gvfs-show,x-gvfs-name=Z,_netdev 0 0

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2033386

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Moses O Gold (mosesogold) wrote :

I have observed the same cifs issue upon using kernel 6.20-31. I was able to resolve the issue via a method provided in cifs-utils bug report 2031246 https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/2031246.

Revision history for this message
Alex Desh (tutralex) wrote (last edit ):

And you can also buy a new device, with SMB version 3 or newer, will this also solve the problem?...
Maybe the developers will return the correct work with version 1.0?

Alex Desh (tutralex)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Moses O Gold (mosesogold) wrote :

Hi Alex. It appears older NTLM support was dropped in Linux Kernel, so SMB version 1.0 does not work for cifs mount. SMB version 2.0 still works though.

See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=76a3c92ec9e0668e4cd0e9ff1782eb68f61a179c

 cifs: remove support for NTLM and weaker authentication algorithms
 for SMB1.
 This removes the dependency to DES.

 Signed-off-by: Ronnie Sahlberg <email address hidden>
 Signed-off-by: Steve French <email address hidden>

See comment from jwunder in bug report 2031246:
"I've managed to get an updated level of code on the Buffalo NAS and with that and
'cifs credentials=XXX,vers=2.0,iocharset=utf8,dir_mode=0777,file_mode=077,sec=ntlmssp 0 in fstab am able to now access my disks."

Revision history for this message
Alex Desh (tutralex) wrote :

Well, it looks like starting with kernel 6.20-31 we will have to say goodbye to SMB version 1.0.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.