Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 414  / 2 Years ago, wed, july 6, 2022, 2:37:27

I have a simple Puppylinux server sharing two folders over Samba. The LAN has about 16 other PCs with a very wide variety of OSes of varying ages.


The Ubuntu Studio PC auto-mounts the shared folders on boot, using fstab entries. A smbcredentials file is used, with permissions 600.


But since upgrading from 20.04 to 22.04, I receive the following error:-


mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)


I understand this might be a catchall error caused by the fstab entry. Which is:-


//192.168.1.112/vol2 /home/dave/vol1 cifs users,exec,dev,suid,rw,credentials=/.smbcredentials,noperm,iocharset=utf8,sec=ntlm,vers=1.0,acl, 0 0


dmesg returns:-
[70672.547621] CIFS: VFS: bad security option: ntlm


So I wonder if ntlm has been deprecated in 22.04, disabled by default, or given a different name.


If so, how can it be re-enabled? And is it possible to prevent future Ubuntu version upgrades from repeating this?


More From » 22.04

 Answers
1

mount.cifs is controlled by the Linux kernel.


The kernel you are using in Ubuntu 22.04 has ntlm removed as an option.


By default cifs negotiates with the server to determine the highest smb dialect ( vers ) to use starting with SMB2.1 all the way up to SMB 3.X


Also by default cifs uses sec=ntlmssp which is many levels above the old ntlm value.


[#181] Thursday, July 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ersoggles

Total Points: 69
Total Questions: 111
Total Answers: 111

Location: Vanuatu
Member since Sun, Oct 2, 2022
2 Years ago
ersoggles questions
Wed, Jun 16, 21, 09:08, 3 Years ago
Thu, Oct 21, 21, 08:21, 3 Years ago
Mon, Jul 5, 21, 03:06, 3 Years ago
Fri, Jul 8, 22, 18:15, 2 Years ago
;