Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Slackware 14.2 system configured as a Windows Active Directory / Domain Controller. For many years I've had a script on this server that mounts the domain's various Windows 10 workstation's C: drives to scan for bogus downloads, etc. This script runs daily after business hours. The C: drives are marked as shared, accessible by the domain administrator.
Starting 4 days ago, this script started failing:
Code:
> mount //dbserver/C /mnt/tmp -o vers=2.1,username=adminuser,rw,password=adminpw
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I've rebooted the computer. I've tried several things I've found on the web including chaning vers to 2.0 and 3.0, adding sec=ntlm, verifying the admin account is not locked out. Nothing has helped.
Nothing has changed on the Linux server prior to this -- no upgrades, etc. I am suspecting something changed on the Windows workstations. Suspiciously, the very day this script stopped working (7/12/2023) there were two Windows updates, "2023-07 Cumulative Update for Windows 10 Version 22H2 for x64-bases Systems (KB5028166)" and "Cumulative Update for .NET Framework 3.4, 4.8 and 4.81 for Windows 10 Version 22H2 for x64 (KB5028937).
OK, I've verified that removing the 7/12/2023 Windows update, "2023-07 Cumulative Update for Windows 10 Version 22H2 for x64-bases Systems (KB5028166)" does allow me to mount the Windows drive on Linux.
I can't be the only Linux user mounting Windows folders/drives affected by this, but I see nothing on the net about this problem.
Your second link seems to the point. There is a suggestion to un-join and rejoin the domain, then reinstall the update. I'll try that, but not for a few days when I go to the physical site.
One poster on that site mentioned "Hiding the specific update". Does anyone know about "hiding" updates? The poster didn't have a lot of detail. Does one remove the update first, then do the hide thing? Does this prevent the update from ever downloading again?
While I do not have that particular Windows Update installed, I get basically the same error when trying to mount to Windows share. Any further success on permanent solution? Mounting the windows share previously worked, but now this response:
Code:
mount.cifs kernel mount options: ip=192.168.2.118,unc=\\ab******u\D$,vers=2.0,uid=33,gid=33,user=******,domain=campus,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I tried today to follow the "hide" instructions from pam64's post, but I find that KB5028166 has disappeared from my update list, so I can't uninstall it. Yet, I still cannot mount Windows drives from Samaba.
Does anyone know what happened? Has KB5028166 been superseded by something newer?
I will post a question to Microsoft support about this, although I think they will be of little help when it comes to mapping drives from non-Windows computers.
I was hoping some Linux user would have some insight. Surely there are plenty of Linux users out the mapping (mounting) Windows drives. What mount syntax are you using? I'm doing:
Code:
> mount //windows10/C /mnt/tmp -o vers=2.1,username=adminuser,rw,password=adminpw
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I've tried various versions of vers= and all options for sec=. In /var/log/messages I get:
Code:
Status code returned 0xc000018d STATUS_TRUSTED_RELATIONSHIP_FAILURE
Note that if I use sec=none instead of "Input/Output error" I get:
Code:
password specified twice, ignoring second
mount error(13): Permission denied
Is it possibly a problem with my version of mount? I'm using version 2.27.1 (libmount 2.27.0: assert, debug)
If someone is using successful mounts of shared Windows 10 drives, I'd like to know what mount options you're using.
Not sure if it is anything to do with this, but there were some big changes to security in Samba between the versions included with Slackware 14.2 and 15.0.
Side question, just out of interest: For your DC do you use MIT or Heimdal Kerberos?
The main file share in my office is running W10 22H2, and it received the KB5028166 patch on 12th July. As I mentioned earlier, our backup machine (which runs Slackware64-15.0) doesn't seem to have been impacted by the update at all.
Well, I guess we'll have to wait until I upgrade the DC which is currently Slackware 14.2 and Samba 4.8.2. I was once told how to determine if I'm using Heimdal or MIT, but I forget how to do that. In any case, I can't switch that w/o upgrading.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.