You are not logged in.

#1 2017-10-15 09:39:23

zsjoska
Member
Registered: 2017-10-03
Posts: 2

[SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Hi,

After a recent upgrade I'm unable to connect to my CIFS shares:
Oct 15 12:23:42 mir kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Oct 15 12:23:42 mir systemd[1]: mnt-storage\x40krux.mount: Mount process exited, code=exited status=32
Oct 15 12:23:42 mir systemd[1]: mnt-storage\x40krux.mount: Failed with result 'exit-code'.
Oct 15 12:23:42 mir systemd[1]: Failed to mount /mnt/storage@krux.
Oct 15 12:23:42 mir kernel: CIFS VFS: Unable to select appropriate authentication method!
Oct 15 12:23:42 mir kernel: CIFS VFS: Send error in SessSetup = -22
Oct 15 12:23:42 mir kernel: CIFS VFS: cifs_mount failed w/return code = -22

the mount is described in fstab as follows:
//krux.lan/storage                              /mnt/storage@krux                      cifs        user,noauto,nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,x-systemd.idle-timeout=10min,credentials=/home/zsjoska/.smbcred/.localsmbcred,nosetuids,noperm,iocharset=utf8,sec=ntlm 0 0

Based on the error message, I tried to add the vers=1.0 param but didn't help.

Does anybody had the same problem? Is there a solution?

Last edited by zsjoska (2017-10-16 16:33:53)

Offline

#2 2017-10-15 14:44:03

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

What does "didn't help" mean?
The particular message should have gone/changed, so what's the updated error?

Offline

#3 2017-10-15 15:04:30

ua4000
Member
Registered: 2015-10-14
Posts: 420

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

What SMB version provides //krux.lan  ? Or what System is this, Windows/Version, NAS, Linux-Server ?

Offline

#4 2017-10-16 08:27:43

Ben00it
Member
Registered: 2017-09-21
Posts: 9

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Hi zsjoska,

You seems to be on the good way, just miss some information...
FYI :
Linux 4.13 has been released on Sun, 3 Sep 2017.
1.6. CIFS defaults to SMB3.0
Due to recent publicity about security vulnerabilities in the much older CIFS dialect, move the default dialect to the widely accepted (and quite secure) SMB3.0 dialect from the old default of the CIFS dialect. Both Microsoft and CERT now strongly recommend not using the older CIFS dialect (SMB Security Best Practices "recommends disabling SMBv1"). SMB3 is both secure and widely available: in Windows 8 and later, Samba and Macs. Users can still choose to explicitly mount with the less secure dialect (for old servers) by choosing "vers=1.0" on the cifs mount

Offline

#5 2017-10-16 16:15:31

zsjoska
Member
Registered: 2017-10-03
Posts: 2

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Yes, I was on the good way, it works now, I had to do a restart.
Good point for seth for asking the updated error log... I should have noticed that the default dialect warning should be missing once I added vers=1.0
Thank you very mutch for all answers.

Offline

#6 2017-10-16 16:29:51

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Cool.
Please always remember to mark threads as [SOLVED] by editing your initial post so that others will no there's no question left and maybe an answer to find.

Offline

#7 2018-06-18 14:17:17

misarm
Member
Registered: 2008-12-02
Posts: 8

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

For me worked also removing ",sec=ntlm" (which can be removed in v.3.0), it is better than forcing protocol to 1.0. It was against samba 4.3.11-ubuntu server.

Last edited by misarm (2018-06-18 14:17:42)

Offline

#8 2018-06-18 14:27:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Taking this opportunity to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2018-06-18 14:27:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: [SOLVED]CIFS not working, kernel upgrade:No dialect specified on mount

Thanks for sharing, however the post is already [SOLVED]. Please don't necrobump old posts

Closing.

Offline

Board footer

Powered by FluxBB