• 1 Post
  • 28 Comments
Joined 10 months ago
cake
Cake day: February 9th, 2025

help-circle




  • Yes, every distro requires a password for sudo. That’s the whole point of it. But editing .bashrc does not require sudo. You can add aliases and functions to .bashrc. A malicious script can append to .bashrc, and by doing so, it can alias sudo to be whatever command it wants. For instance, a malicious function. So the next time you run sudo it runs the malicious command, instead, which itself can act just like sudo and prompt you for your password. So now you just entered your password into a malicious function. Do you see the problem with this?






  • You don’t need to do anything special. Take an NVMe or SSD and put it internally in some PC—ideally the same computer you want to use it on, for driver reasons—then install Windows on it. (Windows won’t let you install to a USB device, so you have to put the drive internally in the PC.) Then take it back out, put it in an external enclosure, plug it into USB and it boots right up. (Well, as long as you know how to choose a boot device at startup or make USB a higher priority than your internal drive.)

    I just did that on my laptop by taking out the Windows NVMe, putting in a new one for Linux, and then sticking the Windows NVMe in an enclosure.

    Obviously, this can’t work on a thumb drive, but it’s not terribly inconvenient to carry around an enclosure and a cable.

    (An LLM told me I should change some registry settings to make loading the USB drivers occur earlier during boot, but that doesn’t make much sense. How could it boot enough to load the Registry in order to know to load the USB drivers earlier? It’s already booting. But if you try this and have any troubles, I can probably figure out what Registry settings I changed. I’ve also done this with an M.2 SSD from one PC and booted it from a USB enclosure on a different PC, and I definitely made no registry changes then.)











  • Thanks! Using -e jumped right to the problem:

    Something—I don’t know what—added a removable drive to fstab, and the error was that drive couldn’t be mounted at boot.

    I have two guesses:

    1. I formatted a microSD card using YaST Paritioner sometime before doing the distro upgrade.
    2. The drive might have been attached during the distro upgrade, though I don’t think it was.

    At any rate, I commented out that line in fstab and it booted right up. Now I just have to fix snapper.

    EDIT: Why is my -e red?
    Testing
    -f
    -aBx

    Weird. What I see when viewing mycomment on thelemmy.club: