You are not logged in.

#1 2021-11-14 09:34:41

MSMHRO
Member
Registered: 2010-05-06
Posts: 13

mount.cifs sec=ntlm became "bad option"

Hi, after upgrading kernel-zen to 5.15.2-zen1-1-zen, my cifs mount became not working.

/usr/bin/sudo mount.cifs //192.168.128.32/Capsule /Time -o rw,credentials=/home/user/.smbcred,uid=1000,gid=1000,sec=ntlm,vers=1.0
I get error
kernel: bad security option: ntlm
kernel: CIFS: VFS: bad security option: ntlm

Before upgrading to kernel, it was working fine and after upgrade, I have roll back to the older kernel, it worked.
I have tried sec=ntlmv2, ntlmssp but no change.
Can anyone tell me how to fix this issue please?

Offline

#2 2021-11-14 12:53:37

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 89

Re: mount.cifs sec=ntlm became "bad option"

There is no fix: ntlm support removed completely from kernel.

Offline

#3 2021-11-14 23:20:26

MSMHRO
Member
Registered: 2010-05-06
Posts: 13

Re: mount.cifs sec=ntlm became "bad option"

Oh, no...
I'll try afp then... Thanks!

Offline

#4 2022-01-04 15:56:58

Sembiance
Member
Registered: 2022-01-04
Posts: 1
Website

Re: mount.cifs sec=ntlm became "bad option"

So I needed NTLM support added back into the kernel, so I created a backport patch for vanilla kernel 5.15.12
I don't use arch, but I posted the patch over here: https://821895.bugs.gentoo.org/attachment.cgi?id=761299

Hopefully this will be useful to those who need that support back in the kernel.

Offline

#5 2022-02-09 19:59:40

jackdinn
Member
Registered: 2022-02-09
Posts: 2

Re: mount.cifs sec=ntlm became "bad option"

Im lost without my backup LAN drives. I dont know what to do.

For years I have 2 hdd's connected to my routers USB ports, There are no options to change the protocols. I use it twice a day to do all my backups. All i can do is to downgrade back to the previous kernel and hope that kernel stays around for a long time because i cant use linux without access to my network storage  sad

Unless anyone can assist?

https://forum.manjaro.org/t/updated-ker … /102031/12

Last edited by jackdinn (2022-02-09 20:02:52)

Offline

#6 2022-02-18 20:20:40

Vizitor
Member
Registered: 2015-01-05
Posts: 81

Re: mount.cifs sec=ntlm became "bad option"

Omitting "sec=ntlm" does the trick for me ( I really do not need it).

fstab:

//192.168.1.5/Volume_1	/home/v/MNT/CIFS/NAS2	cifs	vers=1.0,username="my_name",password="my_password",iocharset=utf8,nofail	0	0

Offline

Board footer

Powered by FluxBB