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?