On Ubuntu I was using sudo with no problem this morning but this evening my password is incorrect… I don’t think there’s anything I can do…

My question is, can I move my Lemmy instance from this machine to another? I understand very little about this. I’m very new at this… So please eli5.

  • linearchaos@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Single user mode, change root password.

    Thing is, if you were owned it’s super hard to safely find and presents they left you. It’s best to take your data to offline disks and wipe.

  • hitagi@ani.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You can mount the disk on a different Linux installation and just grab the docker volumes and config files and recreate it.

    Kind of strange to get hacked this way though. Are you sure you’ve been hacked?

  • outcide@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    If you’ve actually been hacked you want to get your data off to another computer and then wipe the hacked server. You can try and run a rootkit to see if it can detect any signs of being hacked.

    Before using any files from the serer, check them carefully for virus and trojans.

    If you just locked yourself out of the server by mistake, boot into single-user mode and reset your password.

    Either way, unplug the network cable until you figure out if you’ve been hacked or not.