Windows 10: How to stop MSRT removing the hosts files in WSL distros

Discus and support How to stop MSRT removing the hosts files in WSL distros in AntiVirus, Firewalls and System Security to solve the problem; Ran MSRT full system scan which reported SettingsModifier:Win32/HostsFileHijack. In the log file, the following appears: Threat detected:... Discussion in 'AntiVirus, Firewalls and System Security' started by RJD185, Dec 16, 2020.

  1. RJD185 Win User

    How to stop MSRT removing the hosts files in WSL distros


    Ran MSRT full system scan which reported SettingsModifier:Win32/HostsFileHijack. In the log file, the following appears:


    Threat detected: SettingsModifier:Win32/HostsFileHijack
    file://C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\etc\hosts
    SigSeq: 0x00001D644FCA2409
    SHA1: 0e3b352830433720f62f1b59be79b9e7e3092577

    And a bit below that:


    Start 'remove' for file://\\?\C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\etc\hosts
    Operation succeeded !

    The entire hosts file has been deleted - WSL regenerates a default file but all the local updates are gone. Is MSRT only looking for a file called 'hosts', without any attention being paid to where it actually is? Is there any way to stop it doing this or report it to someone so they can fix it?

    :)
     
    RJD185, Dec 16, 2020
    #1
  2. NickJP Win User

    Cannot upgrade installed distros in WSL to version 2

    After installing the Win10 2004 build 19041 update (running winver shows "version 2004 (OS build 19041.388)", I've tried to upgrade a couple of installed distros I had in WSL version 1 to WSL version 2 following the instructions at https://docs.microsoft.com/en-us/win.../install-win10. All the steps in the instructions compete successfully, up to the point where I try to change the WSL version of one of the installed distros to 2 at which point I see the messages below:

    Code:
    I have enabled the Virtual Machine Platform feature (it shows as on with a tick against it in Control Panel Windows features), Intel-vt virtualization is enabled in the BIOS, and running msinfo32 shows, at the bottom of the system summary listing:

    Code:
    I also tried installing another distro with the WSL default version set to 2, but attempting to launch it shows the error:

    Code:
    Any suggestions on how to get around this problem? From what I've read, WSL2 gives worthwhile speed increases over WSL1, and so is worth using if I can get it to work.
     
    NickJP, Dec 16, 2020
    #2
  3. Removal program (MSRT) doesn't remove Infected files

    Bernie,

    The Malicious Software Removal Tool (MSRT) is quite a useless and antiquated tool which tends to throw all kinds of errors and misinformation...

    Suggestion to read these threads (especially the posts of Rob Koch and quietman and GreginMich) which are explaining a bit about the "usefulness" of the MSRT...

    I, personally, never even download/use it...

     
    Jsssssssss, Dec 16, 2020
    #3
  4. How to stop MSRT removing the hosts files in WSL distros

    Alternatives to using Windows Store to install Linux distro on WSL

    I just wanted to ask what alternatives there are to using the Windows 10 to install Linux distros on WSL.

    Also, it seems like Ubuntu 19 isn't available for the WSL. Is there a chance that we'll be able to install it when WSL2 is released? And I'd like to get the latest non-LTS version if possible (though it's alright if it's not possible too).
     
    OsmanZakir, Dec 16, 2020
    #4
Thema:

How to stop MSRT removing the hosts files in WSL distros

Loading...
  1. How to stop MSRT removing the hosts files in WSL distros - Similar Threads - stop MSRT removing

  2. How Does One Install WSL Distro for a Different User Account?

    in Windows 10 Software and Apps
    How Does One Install WSL Distro for a Different User Account?: I have a Windows 11 PC with WSL set up for my user account. This PC was shipped to different location where I can DameWare in with my Windows challenge/response, then login with local credentials. This PC does not have internet access. As this local user, WSL presents error...
  3. WSL 2 distro installation failure

    in Windows 10 Ask Insider
    WSL 2 distro installation failure: Installation of WSL 2 distros fails with error Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed. I also cannot run Hyper-V...
  4. Custom WSL Distro Not Launching

    in Microsoft Windows 10 Store
    Custom WSL Distro Not Launching: Hello world. I recently decided to try installing a Linux distro to use with Windows Subsystem for Linux. I did not like any of the options provided, however, so I tried to use a "custom" one. I say this in quotes because the distro was publicly available, but not as a WSL...
  5. WSL distros disappear after drive upgrade

    in Windows 10 Ask Insider
    WSL distros disappear after drive upgrade: Just as a note, it is most likely I did something very stupid here. Please point out what I did wrong! So strange thing today, I upgraded my nvme drive today. Went from 500GB to 1TB, but now my WSL distros are missing. what I did: use DD to clone one drive to other dd...
  6. Syncing Windows hosts file with WSL 2 hosts file.

    in Windows 10 Ask Insider
    Syncing Windows hosts file with WSL 2 hosts file.: If I add a new entry to the Windows hosts file, then on restarting WSL 2, the hosts file for WSL is autogenerated based on Windows’ host file. If I add a new entry to WSL’s host file, is it possible to add that entry to Windows’ host file also? submitted by /u/thefirstme...
  7. How to import and export WSL distros on Windows 10

    in Windows 10 News
    How to import and export WSL distros on Windows 10: [ATTACH] [ATTACH]With Windows 10, Microsoft allows a user to run multiple Linux distros based on WSL or Windows Subsystem for Linux. But when reinstalling or resetting Windows 10, all the configuration stored with these WSL distros gets deleted. Or to back [...] This post...
  8. How to add users to WSL Distro (Windows Subsystem for Linux)

    in Windows 10 News
    How to add users to WSL Distro (Windows Subsystem for Linux): [ATTACH] [ATTACH]WSL or Windows Subsystem for Linux for Windows 10 support multiuser capabilities. And when it comes to user management for software, various aspects of software management can be discussed. Adding a user to the Windows Subsystem for Linux on Windows [...]...
  9. Remove User from Windows Subsystem for Linux WSL Distro in Windows 10

    in Windows 10 Tutorials
    Remove User from Windows Subsystem for Linux WSL Distro in Windows 10: How to: Remove User from Windows Subsystem for Linux WSL Distro in Windows 10 How to Remove User from Windows Subsystem for Linux (WSL) Distro in Windows 10 The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux...
  10. Add, Remove, and List Sudo Users in a WSL Linux Distro in Windows 10

    in Windows 10 Tutorials
    Add, Remove, and List Sudo Users in a WSL Linux Distro in Windows 10: How to: Add, Remove, and List Sudo Users in a WSL Linux Distro in Windows 10 How to Add, Remove, and List Sudo Users in Windows Subsystem for Linux (WSL) Distro in Windows 10 The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run...