Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RedditEnjoyer@lemmy.world to Linux@lemmy.ml · 1 year ago

A Linux user's nightmare: the machine was wiped clean with one click

www.mikrobitti.fi

external-link
message-square
49
fedilink
  • cross-posted to:
  • technology@lemmy.world
118
external-link

A Linux user's nightmare: the machine was wiped clean with one click

www.mikrobitti.fi

RedditEnjoyer@lemmy.world to Linux@lemmy.ml · 1 year ago
message-square
49
fedilink
  • cross-posted to:
  • technology@lemmy.world
Linux-käyttäjän painajainen: kone pyyhittiin tyhjäksi yhdellä klikkauksella
www.mikrobitti.fi
external-link
KDE Plasman käyttäjän teemanasennus päättyi painajaismaiseen tilanteeseen.

google translate

  • carzian@lemmy.ml
    link
    fedilink
    arrow-up
    44
    ·
    edit-2
    1 year ago

    The command was rm -rf $pathvariable

    Bug in the code caused the path to be root. Wasn’t explicitly malicious

    • Dandroid@sh.itjust.works
      link
      fedilink
      arrow-up
      19
      ·
      1 year ago

      Don’t most distros have safeguards against this? I tried sudo rm -rf / in an Ubuntu VM that I was about to delete just to see what happened, and it gave me a warning. I had to add some other option to bypass the warning.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        ·
        1 year ago

        it apparently was defaulting to the home dir, not /

        • Dandroid@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Oh, oof.

          Hopefully most people take regular snapshots.

      • TFO Winder@lemmy.ml
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        Yes,

        rm -rf --allow-unsafe

        Or something is required

        • Rustmilian@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          edit-2
          1 year ago

          --no-preserve-root

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.17K users / day
  • 3.68K users / week
  • 7.92K users / month
  • 16.7K users / 6 months
  • 550 local subscribers
  • 54.1K subscribers
  • 7.83K Posts
  • 208K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org